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