Is there a way to log the output of the Scala REPL in a file ?
You could import java.util.PrintWriter and have some code like this:
val out = new PrintWriter("out.txt")
out.println("output string")
out.flush();
out.close();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With