Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Scala REPL の出力をファイルに記録する方法はありますか?
java.util.PrintWriter をインポートして、次のようなコードを作成できます。
val out = new PrintWriter("out.txt") out.println("output string") out.flush(); out.close();