Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
FUNCTION 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 . 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

AccessCode

Definition

r

One of the following strings:

...

  • r        Open text file for read.

wt

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

a

  • 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

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

...

INTEGER

...

fileIdAn identifier of the open file or a zero when the function fails in the fileId argument.

Return Value

...

Insert excerpt
US:_r_XPX_Return_Value
US:_r_XPX_Return_Value
nopaneltrue

Options

...

 

Example

...

Code Block
languagecpp
<Missing Example>

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "extension_schema" and parent = "5636522"