Seek (File)

From OxeyeWiki

Revision as of 18:45, 7 February 2010 by Jeb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

file:seek(bytes[, relative])

Moves the read cursor in the file.

Parameter Expected Type Description
bytes An integer How many bytes to move.
relative Optional boolean Set this to true to move the cursor relative to its current position. The default value is false, which means daisy will seek from the beginning of the file.
Returns

Returns nothing.

DaisyMoon File Objects

Example

   file:seek(0) -- jump back to the beginning of the file
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox