Skip to content

Instantly share code, notes, and snippets.

@rokon12
Created March 25, 2017 00:57
Show Gist options
  • Save rokon12/ec482946245f2e3573adb9fb5847b315 to your computer and use it in GitHub Desktop.
Save rokon12/ec482946245f2e3573adb9fb5847b315 to your computer and use it in GitHub Desktop.
try (FileInputStream fis = new FileInputStream("file.txt");
BufferedInputStream bis = new BufferedInputStream(fis)) {
// your code belongs to here
} catch (IOException e) {
e.printStackTrace();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment