From: Harold Hausman Date: 2007-03-05T12:04:05+09:00 Subject: Re: Create a text file with ruby On 3/5/07, Marcelo Junior 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