Add a new line in file?

Use IO#puts.

file.puts @string

file.write "\n"