Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mrkev/10351388 to your computer and use it in GitHub Desktop.
Save mrkev/10351388 to your computer and use it in GitHub Desktop.
Open String filepath to BufferedReader (Doesn't include imports).
/**
* Opens a file into a BufferedReader.
*
* @param filename A file to read.
* @return A BufferedReader for reading the file.
* @throws FileNotFoundException
*/
private static BufferedReader openFile(String filename) throws FileNotFoundException {
return new BufferedReader(new FileReader(filename));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment