Advertisement
Josif_tepe

Untitled

Mar 23rd, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. import java.io.*;
  2. public class Main {
  3.  
  4.     public static void main(String[] args) {
  5.         try {
  6.             FileInputStream in = new FileInputStream("in.txt");
  7.             int x = in.read();
  8.             System.out.write(x);
  9.             x = in.read();
  10.             System.out.write(x);
  11.  
  12.         }
  13.         catch (IOException ex) {
  14.             System.out.println(ex);
  15.         }
  16.     System.out.flush();
  17.     }
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement