xpxOpenFile

FUNCTION xpxOpenFile(fileName, accessCode : STRING;
                     VAR fileId           : INTEGER)
                     status               : INTEGER;

This function opens the specified named file. 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.

Arguments


TypeNameComment
STRINGfileNameFull file path
STRINGaccessCode

One of the following strings:

  • 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
INTEGERfileIdAn identifier of the open file or a zero when the function fails in the fileId argument.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_XPX_Return_Value'.

Options


 

Example


<Missing Example>

 

See also

Filter by label

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