NAnt SDK Documentation - v0.92

FileUtils.ReadFile Method 

Reads a file filtering its content through the filter chain.

[Visual Basic]
Public Shared Function ReadFile( _
   ByVal fileName As String, _
   ByVal filterChain As FilterChain, _
   ByVal inputEncoding As Encoding _
) As String
[C#]
public static string ReadFile(
   string fileName,
   FilterChain filterChain,
   Encoding inputEncoding
);

Parameters

fileName
The file to read.
filterChain
Chain of filters to apply when reading, or a null reference (Nothing in Visual Basic) is no filters should be applied.
inputEncoding
The encoding used to read the file.

Remarks

If inputEncoding is a null reference (Nothing in Visual Basic), then the system's ANSI code page will be used to read the file.

See Also

FileUtils Class | NAnt.Core.Util Namespace