StorageFile class provides a method called CopyAsync to copy the contents of one file into another.
The code for the above is as following
Note: In the given code above we replace the contents of filetoReplace by filetoCopy.
If you want to copy the file to a given StorageFolder you can use the CopyAsync method. The code for the following is given below