Software Development
Pages
Home
About
Contact
Friday, April 27, 2012
How to append to a file in Ruby
my_file = File.open('file_name', 'a')
Once you open the file in append mode, you can write to it. It will get appended to existing contents of the file.
Newer Post
Older Post
Home
View mobile version