Skip to content

Instantly share code, notes, and snippets.

@clarenced
Created August 11, 2011 15:05
Show Gist options
  • Save clarenced/1139896 to your computer and use it in GitHub Desktop.
Save clarenced/1139896 to your computer and use it in GitHub Desktop.
try(BufferedReader buffer = new BufferedReader(new FileReader(path))){
String line;
while( (line = buffer.readLine()) != null){
System.out.println(line);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment