For reading files in Scala, there is
Source.fromFile(\"file.txt\").mkString
Is there an equivalent and concise way to write a string to fi
A concise one line:
import java.io.PrintWriter new PrintWriter("filename") { write("file contents"); close }