NAnt SDK Documentation - v0.92

FileUtils.CopyFile Method 

Copies a file filtering its content through the filter chain.

[Visual Basic]
Public Shared Sub CopyFile( _
   ByVal sourceFileName As String, _
   ByVal destFileName As String, _
   ByVal filterChain As FilterChain, _
   ByVal inputEncoding As Encoding, _
   ByVal outputEncoding As Encoding _
)
[C#]
public static void CopyFile(
   string sourceFileName,
   string destFileName,
   FilterChain filterChain,
   Encoding inputEncoding,
   Encoding outputEncoding
);

Parameters

sourceFileName
The file to copy
destFileName
The file to copy to
filterChain
Chain of filters to apply when copying, or a null reference (Nothing in Visual Basic) is no filters should be applied.
inputEncoding
The encoding used to read the soure file.
outputEncoding
The encoding used to write the destination file.

See Also

FileUtils Class | NAnt.Core.Util Namespace