Summary
Reads a file filtering its content through the filter chain.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Util - Containing Type
- FileUtils
Syntax
public static string ReadFile(string fileName, FilterChain filterChain, Encoding inputEncoding)
Remarks
If inputEncoding is
null
,
then the system's ANSI code page will be used to read the file.
Parameters
Name | Type | Description |
---|---|---|
fileName | string | The file to read. |
filterChain | FilterChain | Chain of filters to apply when reading, or null is no filters should be applied. |
inputEncoding | Encoding | The encoding used to read the file. |
Return Value
Type | Description |
---|---|
string |