try (InputStream input = new FileInputStream("C:\\Users\\A\\Desktop\\java代码\\" + args[0])) { String fileContent = new String(input.readAllBytes()); try (OutputStream output = new FileOutputStream("C:\\Users\\A\\Desktop\\java代码\\" + args[1])) { output.write(fileContent.getBytes()); } catch (IOException e) { System.out.println("error:文件写入失败"); }} catch (IOException e) { System.out.println("error:文件读取失败");}
Sign in to make a reply
^O^