Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member Replace(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.
Public method Static member Replace(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.
Top

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.