Gentee Programming Language > Documentation > Libraries Download documentation

open

Open a file.
 
uint open(
      str   name,
      uint   flag
)

Parameters

nameThe name of the file to be opened.
flagThe following flags can be used.
$OP_READONLYOpen only for reading
$OP_EXCLUSIVEOpen in the exclusive mode
$OP_CREATECreate the file
$OP_ALWAYSCreate the file only if it does not exist

Return value

The function returns the file identifier. It returns 0 in case of an error.

See also

    Function working with files


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