Skip to content

Instantly share code, notes, and snippets.

@up1
Created April 21, 2015 06:41
Show Gist options
  • Save up1/c4d2f6fd36701a14519f to your computer and use it in GitHub Desktop.
Save up1/c4d2f6fd36701a14519f to your computer and use it in GitHub Desktop.
Demo :: Bad code
BufferedReader reader = new BufferedReader( new FileReader (file));
String line = null;
StringBuilder output = new StringBuilder();
while( ( line = reader.readLine() ) != null ) {
output.append(line);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment