🟧ReadString

Function reads a string in binary read mode.

File:ReadString() -> string

Usage Example

local f = file.Open( "my-file.dat", "rb", "DATA" )
if not f then return end

local str = f:ReadString()
print( str )
-- string line from file

f:Close()

Last updated