Created
September 30, 2016 19:51
-
-
Save jessedearing/121b0aeb1b83c310f911dc18b42df7e4 to your computer and use it in GitHub Desktop.
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
try(FileInputStream input = new FileInputStream(“file.txt”)) { | |
int data = input.read(); | |
while(data != -1) { | |
System.out.print((char) data); | |
data = input.read(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment