.NET Framework Class Library
FileInfo..::.Replace Method

Replaces the contents of a specified file with the file described by the current FileInfo object, deleting the original file, and creating a backup of the replaced file.

Overload List

  NameDescription
Public methodReplace(String, String)Replaces the contents of a specified file with the file described by the current FileInfo object, deleting the original file, and creating a backup of the replaced file.
Public methodReplace(String, String, Boolean)Replaces the contents of a specified file with the file described by the current FileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors.
Top
Remarks

Use the Replace methods when you need to quickly replace a file with the contents of the file described by the current FileInfo object.

See Also

Reference

Tags :


Page view tracker