Jump to content

Sys2Seek: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


==Arguments==
==Arguments==
REXX ARGUMENTS:
# File handle (returned by [[Sys2Open]]). (REQUIRED)
  1. File handle (returned by Sys2Open). (REQUIRED)
# The signed distance in bytes to move. (REQUIRED)
  2. The signed distance in bytes to move. (REQUIRED)
# Move method, one of:
  3. Move method, one of:
#:B = Beginning of file
      B = Beginning of file
#:C = Current position (DEFAULT)
      C = Current position (DEFAULT)
#:E = End of file
      E = End of file


==Return Value==
==Return Value==
REXX RETURN VALUE: The new file position, in bytes.
The new file position, in bytes.


[[Category:RxUtilEx]]
[[Category:RxUtilEx]]

Latest revision as of 06:47, 3 May 2020

Move the read/write pointer to the specified location in an open file/stream; files larger than 2GB are supported (this function is a wrapper to DosSetFilePtrL).

Arguments

  1. File handle (returned by Sys2Open). (REQUIRED)
  2. The signed distance in bytes to move. (REQUIRED)
  3. Move method, one of:
    B = Beginning of file
    C = Current position (DEFAULT)
    E = End of file

Return Value

The new file position, in bytes.