Skip to content

ReadAllBytesNoLock Method ​

Definition ​

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

Overloads ​

NameDescription
byte[] ReadAllBytesNoLock(FileInfo fileInfo)Reads all bytes from a file without holding a long-term exclusive lock.
byte[] ReadAllBytesNoLock(string filename)Reads all bytes from a file without holding a long-term exclusive lock.

byte[] ReadAllBytesNoLock(FileInfo fileInfo) ​

csharp
byte[] ReadAllBytesNoLock(FileInfo fileInfo)

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

Parameters ​

NameDescription
fileInfoThe file to read.

Returns ​

A byte array containing the file contents.

byte[] ReadAllBytesNoLock(string filename) ​

csharp
byte[] ReadAllBytesNoLock(string filename)

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

Parameters ​

NameDescription
filenameThe path to the file to read.

Returns ​

A byte array containing the file contents.