Created
April 2, 2015 05:07
-
-
Save Yuichiroh/8e30e924eaaefc20801c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
println("This is what I want to say.") | |
Console.err.println("standard error") | |
Console.withOut(new PrintStream("out.txt")) { | |
println("anything you want to write") | |
Console.out.close() | |
} | |
Console.out.println("Hi. I'm stdin again!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment