Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

VFile.Replace Method

Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

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 destinationFileName should be stored. Can be null - backup of the destinationFileName IS NOT made.

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 destinationFileName should be stored. Can be null - backup of the destinationFileName IS NOT made.

Boolean ignoreMetadataErrors

The argument is ignored.

In This Article
  • Replace(String, String, String)
  • Replace(String, String, String, Boolean)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies