View Problem

Write a string to a file

DiskEdit
csharp
System.IO.File.WriteAllText("filename.txt", "Some text to write to the file");
ExpandDiskEdit
erlang
Line = "This line overwites file contents!\n",
{ok, IODevice} = file:open("test.txt", [write]), file:write(IODevice, Line), file:close(IODevice).

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