File-Seek
(file-seek file integer) -> integer
- file -- file descriptor handle - file
- integer -- If positive, must be greater than or equal to zero and less than or equal to the file-len of the given file. If negative, it must not cause the file-pos of the given file to become less than 0.
When given a positive integer, or zero, sets the pointer, or file-pos, of the given file to that value. When given a negative integer, it acts as file-skip, adjusting the file-pos by that value.
Examples:
>> (file-seek a 3)
:: 3
>> (file-seek a -2)
:: 12
See Also: file-pos, file-len, file-skip