|
|
2.8.4.3 File Input/Output
-
Open a text file:
-
FOPEN_DIRECTIVE:
-
#fopen FILE_HANDLE_IDENTIFIER FILE_NAME OPEN_TYPE
-
OPEN_TYPE:
-
read | write | append
-
Close a text file:
-
FCLOSE_DIRECTIVE:
-
#fclose FILE_HANDLE_IDENTIFIER
-
Read string, float and/or vector values from a text file:
-
READ_DIRECTIVE:
-
#read ( FILE_HANDLE_IDENTIFIER, DATA_IDENTIFIER [, DATA_IDENTIFIER]... )
-
Use defined(FILE_HANDLE_IDENTIFIER) to detect end-of-file
after a read.
-
DATA_IDENTIFIER:
-
UNDECLARED_IDENTIFIER | FLOAT_IDENTIFIER | VECTOR_IDENTIFIER | STRING_IDENTIFIER | ARRAY_REFERENCE
-
May read a value into an array reference if the array element's type has already been
established.
-
Write string, float and/or vector values to a text file:
-
WRITE_DIRECTIVE:
-
#write ( FILE_HANDLE_IDENTIFIER, DATA_ITEM [, DATA_ITEM]... )
-
DATA_ITEM:
-
FLOAT | VECTOR | STRING
Quick Reference Contents
|
|