public static void Copy(String oldFile,String newFile){
try(FileOutputStream file1 = new FileOutputStream(newFile);
FileInputStream file2 = new FileInputStream((oldFile))) {
StringBuilder sb = new StringBuilder();
byte[] data = new byte[1024];
while ((file2.read(data))!=-1){
file1.write(data);
}
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
} catch (IOException e) {
throw new RuntimeException(e);
}
}



