Append to file



examples/files/append_to_file.cr
if ARGV.size != 2
  puts "Need a filename and the content to write to it on the command line"
  exit 1
end
filename, content = ARGV

File.write(filename, content, mode: "a")

examples/files/append_to_file_bug.cr
File.write("out.txt", "content", mode = "a")