Seek (File)
From OxeyeWiki
|
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