VFile.Replace Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
Replace(String, String, String)
Method copies content of the sourceFileName
to the destinationFileName
and deletes sourceFileName
.
In other words, content of the destinationFileName
is replaced by the content of the sourceFileName
.
When the destinationBackupFileName
is not null then the original (to be replaced) content of the destinationFileName
is stored in the destinationBackupFileName
.
Declaration
public static void Replace(string sourceFileName, string destinationFileName, string destinationBackupFileName)
Parameters
Type | Name | Description |
---|---|---|
String | sourceFileName | The path of the source file. |
String | destinationFileName | The path of the destination file name. |
String | destinationBackupFileName | The path of the backup file name where the original content of the |
Replace(String, String, String, Boolean)
Method copies content of the sourceFileName
to the destinationFileName
and deletes sourceFileName
.
In other words, content of the destinationFileName
is replaced by the content of the sourceFileName
.
When the destinationBackupFileName
is not null then the original (to be replaced) content of the destinationFileName
is stored in the destinationBackupFileName
.
Declaration
public static void Replace(string sourceFileName, string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors)
Parameters
Type | Name | Description |
---|---|---|
String | sourceFileName | The path of the source file. |
String | destinationFileName | The path of the destination file name. |
String | destinationBackupFileName | The path of the backup file name where the original content of the |
Boolean | ignoreMetadataErrors | The argument is ignored. |