C# Класс LogMonitor.FileHandler

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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).

Описание методов

Read() публичный Метод

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.
Результат string

ReadLines() публичный Метод

Reads all lines from the specifed filename (deferred execution).
public ReadLines ( string filename ) : IEnumerable
filename string Path to the file to read.
Результат IEnumerable