Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

File::Replace Method

 

Replaces the contents of a specified file with the contents of another file, deleting the original file, and creating a backup of the replaced file.

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticReplace(String^, String^, String^)

Replaces the contents of a specified file with the contents of another file, deleting the original file, and creating a backup of the replaced file.

System_CAPS_pubmethodSystem_CAPS_staticReplace(String^, String^, String^, Boolean)

Replaces the contents of a specified file with the contents of another file, deleting the original file, and creating a backup of the replaced file and optionally ignores merge errors.

The Replace methods replace the contents of a specified file with the contents of another file. They also create a backup of the file that was replaced.

Return to top
Show:
© 2017 Microsoft