Gentee Programming Language > Documentation > Libraries Download documentation

setpos

Set the current position in the file.
 
uint setpos(
      uint   handle,
      int   offset,
      uint   mode
)

Parameters

handleFile identifier.
offsetPosition offset.
modeThe type of moving the position.
$FILE_BEGINfrom the beginning of the file
$FILE_CURRENTfrom the current position
$FILE_ENDfrom the end of the file

Return value

The function returns the current position in the file.

See also

    Function working with files


 Copyright © 2004-2006 Gentee Inc. All rights reserved.