Error getting tags :
error 404Error getting tags :
error 404 seek | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
seek
Basics
Expander triangle
Type
Command
Syntax
seek {to | rel[ative]} byteNumber in file filePath
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Locates a position in a file, to be used by the read from file and write to file commands.
Examples

seek to 100 in file "test.txt"
seek relative -10 in file outputData

Additional Comments
Expander triangle

Use the seek command to prepare to read from or write to an open file at a specific position in the file.

Parameters:

The byteNumber is an integer representing the position in the file.

The filePath specifies the name and location of the file you want to seek in. It must be the same as the path you used with the open file command. The filePath is case-sensitive, even on platforms where file names are not case-sensitive.

Comments:

The next read from file or write to file command will start reading or writing at the position specified by the seek command.

The seek to form sets the file position to byteNumber bytes from the start of the file. The seek relative form sets the file position to byteNumber bytes from the current position. The position is set by either a previous seek command, or a read from file or write to file command.

User Comments
Expander triangle