Table of Contents

Method ReadAllLinesShared

Namespace
Oscova.Agents.Utils
Assembly
Oscova.Agents.dll

ReadAllLinesShared(string)

Reads all lines through a shared handle so appenders or atomic replacements do not cause file-in-use errors. A line still being flushed by a concurrent appender may read truncated, so callers must tolerate a malformed last line.

public static string[] ReadAllLinesShared(string path)

Parameters

path string

Returns

string[]