Home »
Code Examples »
Scala Code Examples
Scala - Write string to file in one statement Code Example
The code for Write string to file in one statement
import java.io.PrintWriter
new PrintWriter("filename") { write("file contents"); close }
Code by IncludeHelp,
on August 7, 2022 07:22
Reference:
stackoverflow