SEEKINPUT OUTPUT STREAM stream STREAM-HANDLE handleTO expression ENDSTREAM streamIf you specify STREAM stream, the SEEK statement positions the file pointer in the named input or output stream. If you do not name a stream, the AVM uses the unnamed stream.STREAM-HANDLE handleIf you specify the handle to a stream, the SEEK statement returns the current position of the file pointer in the stream. If handle it is not a valid handle to a stream, the AVM generates a run-time error.TO expressionAn expression whose value is INT64 that indicates the byte location to position the file pointer. If expression equals 0, the file pointer is positioned to the first byte in the file. If you want to position the pointer to the last byte in the file, but you do not know the offset, use END.
For more information on streams, see the chapter on alternate I/O sources in OpenEdge Development: Programming Interfaces.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |