Discuss / Java / 交作业~~~

交作业~~~

Topic source

_崔先生_

#1 Created at ... [Delete] [Delete and Lock User]
public static void main(String[] args) throws IOException {
    int n;
    try (InputStream rawFile = new FileInputStream(args[0]);
         OutputStream toFile = new FileOutputStream(args[1])) {
         while ((n = rawFile.read()) != -1) toFile.write(n);
    }
}

  • 1

Reply