Quick Ruby File Operations
Friday, January 5th, 2007I was working on a quick program to read and write data to files in Ruby. I am new to Ruby so here is a quick lesson in basic Ruby file operations.
Reading Files
Writing Files
This is a pretty straight forward example. I make use of the “r” and “w” I/O modes. You can find out more about the I/O modes at the Ruby API site.
