C# Class LogMonitor.FileHandler

Afficher le fichier Open project: peschuster/LogMonitor Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat string

ReadLines() public méthode

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