File.open("output.txt", "a") do |file|
  file << "Appending new content.\n"
end