Function reads a string in binary read mode.
Last updated 1 year ago
:ReadString() ->
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()