Created
September 27, 2017 10:01
-
-
Save aleem006/1b0883d5b80896ca04e00faa7621b923 to your computer and use it in GitHub Desktop.
Copying a File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void main(String[] args) throws IOException { | |
| File src=new File("C:\\Users\\DELL\\Desktop\\testfile2.txt"); | |
| File des=new File("C:\\Users\\DELL\\Desktop\\testfile3.txt"); | |
| Files.copy(src.toPath(), des.toPath(), StandardCopyOption.REPLACE_EXISTING); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment