Windows-8.1

How to copy one StorageFile into another StorageFile in Windows phone app using C#

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

 

 


Chetan Gulati

Currently am doing B TECH in IT from Delhi Technological University. App development is my passion. Believe in quality rather than quantity.

Read more:
How to create your first Windows Phone app
How to change the App name and Tile name of your Windows phone app
Data binding in Windows Phone app – One way binding
Close