View Problem

Write a string to a file

ExpandDiskEdit
scala org.apache.commons
FileUtils.writeStringToFile(new File("test.txt"), "This line overwites file contents!")
ExpandDiskEdit
scala
val fw = new FileWriter("test.txt") ; fw.write("This line overwites file contents!") ; fw.close()

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