View Problem

Append to a file

ExpandDiskEdit
fsharp
let stream = new StreamWriter("test.txt", true)
stream.WriteLine("This line appended to file!")
ExpandDiskEdit
fantom
File(`out.txt`).out(true).writeChars("some text").flush
ExpandDiskEdit
groovy
file << 'some text'

Submit a new solution for fsharp, fantom, or groovy
There are 14 other solutions in additional languages (clojure, cpp, csharp, erlang ...)