Title photo
frugal technology, simple living and guerrilla large-appliance repair
Tue, 14 Jun 2016

Quick Ruby: Open and write a file

Need to open an existing file, create a new one and write to that file in Ruby?

This Stack Overflow answer makes it super simple.

I already used this in one of my little Ruby programs.

In the same thread (but earlier), here's another one.