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
You can easily use Apache File Utils. Look at function writeStringToFile. We use this library in our projects.
writeStringToFile