Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class Main {
- public static void main(String[] args) {
- try {
- FileInputStream in = new FileInputStream("in.txt");
- int x = in.read();
- System.out.write(x);
- x = in.read();
- System.out.write(x);
- }
- catch (IOException ex) {
- System.out.println(ex);
- }
- System.out.flush();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement