Otter SDK Reference
Version:

Copy(string sourceFileName, string targetFileName, bool overwrite) Method

Copies a file.

Syntax

public static void Copy(string sourceFileName, string targetFileName, bool overwrite)

Parameters

sourceFileName
Type: string

The source file name.

targetFileName
Type: string

The target file name.

overwrite
Type: bool

Value indicating whether overwriting is allowed.

Exceptions

System.ArgumentNullException

sourceFileName is null (Nothing in Visual Basic) or empty or targetFileName is null (Nothing in Visual Basic) or empty.