Advertisement
Josif_tepe

Untitled

Mar 23rd, 2021
104
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) throws IOException{
  5.         FileInputStream in = new FileInputStream("in.txt");
  6.         FileOutputStream out = new FileOutputStream("out.txt");
  7.         byte[] b = in.readAllBytes();
  8.         out.write(b);
  9.         if(in != null) {
  10.             in.close();
  11.         }
  12.         if(out != null) {
  13.             out.close();
  14.         }
  15.  
  16.     }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement