import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
try(OutputStream output = new FileOutputStream(args[1])) {
try(InputStream input = new FileInputStream(args[0])) {
int n;
while((n = input.read()) != -1){
output.write(n);
}
Sign in to make a reply
WLjustdo
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
try(OutputStream output = new FileOutputStream(args[1])) {
try(InputStream input = new FileInputStream(args[0])) {
int n;
while((n = input.read()) != -1){
output.write(n);
}
}
}
}
}