Is there a way to register Scala REPL output in a file?
You can import java.util.PrintWriter and have the following code:
val out = new PrintWriter("out.txt") out.println("output string") out.flush(); out.close();