Mikel Lindsaar
12/27/2007 7:40:00 AM
On Dec 27, 2007 5:30 PM, Corbin Smith <brinco.cs@gmail.com> wrote:
> I'm wondering if it's possible to save a file to a harddrive with Ruby.
Of course
$ irb
irb> text = "Hello world\n"
=> "Hello world\n"
irb> File.open("mytestfile.txt", "w") { |f| f.write(text) }
=> 12
irb> exit
$ cat mytestfile.txt
Hello World
$
That is "saving a file"
Mikel