Advertisement
Josif_tepe

Untitled

Mar 23rd, 2021
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 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.             for(int x = in.read(); x != -1; x = in.read()) {
  8.                 System.out.write(x);
  9.             }
  10.  
  11.         }
  12.         catch (IOException ex) {
  13.             System.out.println(ex);
  14.         }
  15.     System.out.flush();
  16.     }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement