View Problem

Write a string to a file

DiskEdit
python
open('test.txt', 'wt').write('Hello World!')
DiskEdit
csharp
System.IO.File.WriteAllText("filename.txt", "Some text to write to the file");

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