2017-07-24 3 views

Antwort

1

Als deprecation Hinweis in den Scaladoc Staaten verwenden Console.withOut, die nimmt ein OutputStream:

import java.io.{File, FileOutputStream} 

val fos = new FileOutputStream(new File("/path/to/file.txt")) 
Console.withOut(fos) { println("print this to the file") } 
Verwandte Themen