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) throws IOException{
- FileInputStream in = new FileInputStream("in.txt");
- FileOutputStream out = new FileOutputStream("out.txt");
- byte[] b = in.readAllBytes();
- out.write(b);
- if(in != null) {
- in.close();
- }
- if(out != null) {
- out.close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement