C# Class LogMonitor.FileHandler

Mostrar archivo Open project: peschuster/LogMonitor Class Usage Examples

Public Methods

Method Description
Read ( string fileName, long &offset ) : string

Reads all file content, beginning at specified offset position. If the offset position is larger than the size of the file, null is returned and offset set to the file length.

ReadLines ( string filename ) : IEnumerable

Reads all lines from the specifed filename (deferred execution).

Method Details

Read() public method

Reads all file content, beginning at specified offset position. If the offset position is larger than the size of the file, null is returned and offset set to the file length.
public Read ( string fileName, long &offset ) : string
fileName string The file name.
offset long The offset position. After reading file content offset is set to the file length.
return string

ReadLines() public method

Reads all lines from the specifed filename (deferred execution).
public ReadLines ( string filename ) : IEnumerable
filename string Path to the file to read.
return IEnumerable