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
ExpandDiskEdit
clojure
(with-out-writer "output.txt" (println "Hello file!"))

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