seek Method (RandomAccessIO)
In This Topic
Moves the current position for the next read or write operation to offset. The offset is measured from the beginning of the stream. The offset may be set beyond the end of the file, if in write mode. Setting the offset beyond the end of the file does not change the file length. The file length will change only by writing after the offset has been set beyond the end of the file.
Syntax
'Declaration
Sub seek( _
ByVal As Integer _
)
Parameters
- off
- The offset where to move to.
Exceptions
Exception | Description |
EOFException | If in read-only and seeking beyond EOF.
|
IOException | If an I/O error ocurred.
|
See Also