Seek (File)
From OxeyeWiki
(Difference between revisions)
Jeb (Talk | contribs)
(Created page with '{{FileMethod| file:seek(bytes[, relative]) | Moves the read cursor in the file. | {{MethodParam|bytes|An integer|How many bytes to move.}} {{MethodParam|relative|Optional boolean...')
(Created page with '{{FileMethod| file:seek(bytes[, relative]) | Moves the read cursor in the file. | {{MethodParam|bytes|An integer|How many bytes to move.}} {{MethodParam|relative|Optional boolean...')
Latest revision as of 18:45, 7 February 2010
|
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