🟧SkipEmpty

Function skips an empty segment in binary read mode.

File:SkipEmpty()

Usage Example

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

f:Read( 4 )
f:SkipEmpty()

local str = f:Read( f:Size() )
print( str )
-- some data

f:Close()

Last updated