Harold Hausman
3/5/2007 3:04:00 AM
On 3/5/07, Marcelo Junior <marcelo.machado.jr@gmail.com> wrote:
> How make for create a text file using ruby? And how a make for updated
> this text file?
>
# Hello. Consider this code:
File.open( "testfile.txt", "w" ) do |the_file|
the_file.puts "I'm a line in the text file!"
end
# hope that helps,
# -Harold