Created
December 15, 2012 11:32
-
-
Save akkerman/4293974 to your computer and use it in GitHub Desktop.
copy reader to writer
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
private static void copy(BufferedReader reader, PrintWriter writer) { | |
String line; | |
while ((line = reader.readLine()) != null) { | |
writer.println(line); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment