Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
SYNTAX:
 
xpxOpenFile(fileName, accessCode : STRING;
            VAR fileId           : INTEGER)            status               : INTEGER;
 
This function opens the specified named file fileName and returns an identifier of the open file or a zero when the function fails in the fileId argument.
The accessCode is one of the following strings:
 
 

AccessCode

Definition

r

Open text file for read

wt

Open text file for write, discard old contents, create file if not existing

a

Append to existing text file, create text file if not existing

r+

Update; open text file for read and write

wt+

Update; open text file for read and write, discard old content, create if not existing

a+

Update; append; open text file for read and write, create if not existing, writing at end

b

Binary file, can be combined with any of the above access nodes

 
 
 
Update mode permits reading and writing the same file. The function xpxFlushFile or xpxSetFileBytePointer function must be called between a read an and a write operation or vice versa. See also xpfOpenFile.

  • No labels