View Problem

Write a string to a file

DiskEdit
ruby
File.new("a_file", "w") << "some text"
DiskEdit
csharp
System.IO.File.WriteAllText("filename.txt", "Some text to write to the file");
ExpandDiskEdit
fantom
File(`out.txt`).out.writeChars("some text").flush

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