xpfOpenFile

FUNCTION xpfOpenFile(fileName   : STRING;
                     accessCode : STRING)
                     fileId     : INTEGER;
                

This function opens the specified named file fileName and returns an identifier of the open file or a zero when the function fails . 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.

Arguments


TypeNameComment
STRINGfileNamePath to the file
STRINGaccessCode

The accessCode is one of the following strings:

AccessCodeDefinition

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

Return Value


 

TypeNameComment
INTEGERfileIdcomments

Options


 

Example


<Missing Example>

 

See also

Filter by label

There are no items with the selected labels at this time.

Â