FileUtils.

CopyFile(string, string, FilterChain, Encoding, Encoding) Method

Summary

Copies a file filtering its content through the filter chain.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Util
Containing Type
FileUtils

Syntax

public static void CopyFile(string sourceFileName, string destFileName, FilterChain filterChain, Encoding inputEncoding, Encoding outputEncoding)

Parameters

Name Type Description
sourceFileName string The file to copy
destFileName string The file to copy to
filterChain FilterChain Chain of filters to apply when copying, or null is no filters should be applied.
inputEncoding Encoding The encoding used to read the source file.
outputEncoding Encoding The encoding used to write the destination file.

Return Value

Type Description
void