View on GitHub

LiTools

Tools

File.ReadBinaryFile method (1 of 2)

Read file as byte.

public static byte[]? ReadBinaryFile(string filename)
parameter description
filename filename to read.

Return Value

return as byte.

See Also


File.ReadBinaryFile method (2 of 2)

Read file as byte. Start reading from input pos.

public static Tuple<bool, byte[]> ReadBinaryFile(string filename, int from, int len)
parameter description
filename Filename to read.
from seek position to start read.
len lengt to read from file.

Return Value

true/false | byte from file if it was true.

See Also