Mega Code Archive
Categories
/
Ruby
/
File Directory
Using the append mode to create a program that appends a line of text to a file each time its run
f = File.new("logfile.txt", "a") f.puts Time.now f.close