Skip to content

ReadAllTextNoLock Method ​

Definition ​

  • Namespace: JASE.IO
  • Assembly: JASE.dll

Overloads ​

NameDescription
string ReadAllTextNoLock(FileInfo fileInfo)Reads all text from a file without holding a long-term exclusive lock.
string ReadAllTextNoLock(string filename)Reads all text from a file without holding a long-term exclusive lock.

string ReadAllTextNoLock(FileInfo fileInfo) ​

csharp
string ReadAllTextNoLock(FileInfo fileInfo)

Reads all text from a file without holding a long-term exclusive lock.

Parameters ​

NameDescription
fileInfoThe file to read.

Returns ​

A string containing the file contents.

string ReadAllTextNoLock(string filename) ​

csharp
string ReadAllTextNoLock(string filename)

Reads all text from a file without holding a long-term exclusive lock.

Parameters ​

NameDescription
filenameThe path to the file to read.

Returns ​

A string containing the file contents.