View Problem

Append to a file

DiskEdit
csharp .Net 2.0 or later
System.IO.File.AppendAllText("filename.txt", "Some text to append to the file");
ExpandDiskEdit
erlang
Line = "This line appended to file!\n",
{ok, IODevice} = file:open("test.txt", [append]), file:write(IODevice, Line), file:close(IODevice).
ExpandDiskEdit
cpp C++/CLI .NET 2.0
IO::StreamWriter^ stream;

try
{
stream = gcnew IO::StreamWriter("test.txt", true);
stream->WriteLine("This line appended to file!");
}
ExpandDiskEdit
fsharp
let stream = new StreamWriter("test.txt", true)
stream.WriteLine("This line appended to file!")

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