C# 클래스 LogMonitor.FileHandler

파일 보기 프로젝트 열기: peschuster/LogMonitor 1 사용 예제들

공개 메소드들

메소드 설명
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