Reputation: 93206
I want to add a new line after a string is inserted.
My current code looks like this:
File.open(filename, 'a') do |file|
file.write @string
end
How could I add a new line after the string is inserted?
Upvotes: 114
Views: 91027