Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.{File, FileOutputStream}
- val fop = new FileOutputStream(new File("/path/to/file.txt"))
- Console.withOut(fop) { println("print this to the file") }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement