Copies a file.

Namespace: Composite.Core.IO
Assembly: Composite (in Composite.dll) Version: 6.1.6325.31818

Syntax

C#
public static void Copy(
	string sourceFileName,
	string destFileName,
	bool overwrite
)
Visual Basic
Public Shared Sub Copy ( _
	sourceFileName As String, _
	destFileName As String, _
	overwrite As Boolean _
)
Visual C++
public:
static void Copy(
	String^ sourceFileName, 
	String^ destFileName, 
	bool overwrite
)

Parameters

sourceFileName
Type: System..::..String
Source path of file to copy.
destFileName
Type: System..::..String
Target path of the file to be copied to.
overwrite
Type: System..::..Boolean
If this is true and the target path exists, it will be overwritten without any exceptions.

See Also