Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package IO;
- import java.io.DataInputStream;
- import java.io.FileInputStream;
- import java.io.IOException;
- /**
- * Created by Sky_el on 23.02.2017.
- */
- public class TestEOF {
- public static void main(String[] args) throws IOException {
- DataInputStream in = new DataInputStream(new FileInputStream("src/IO/TestEOF.java"));
- while(in.available() != 0) {
- System.out.print((char)in.readByte());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement