Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
System.IO
File Class
File Methods
Replace Method

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
.NET Framework Class Library
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.

Name Description
File.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.
File.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.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker