PROCESS_SEQ_FILE
|
Syntax: |
PROCESS_SEQ_FILE(<Filename>,<Macroname>)
|
||||||||||
|
|
|
||||||||||
|
Meaning: |
Processes
a sequential file. PROCESS_SEQ_FILE
opens a sequential file with OPEN INPUT, reads
the lines with LINE INPUT and closes the
file. After each successful read of a line the macro <Macroname> is
executed. The variable EBUS_SEQ_FILE_LINE$
contains the line which had been read. The
variable EBUS_DATA is set = 1 before the
macro is startet. If EBUS_DATA = 0 when the macro has finised, the
processing is aborted. PROCESS_SEQ_FILE
returns the following results:
|
||||||||||
|
Parameter: |
|
||||||||||
|
Sample: |
// Read and print all lines of
"Test.dat" H% = PROCESS_SEQ_FILE("Test.dat",TEST.PROCESS.LINE) IF H% <>
0 THEN ERRORMES = "Error " + STR$(H%) ENDIF // Macro TEST.PROCESS.LINE LRPINT EBUS_SEQ_FILE_LINE$ |
||||||||||
|
See also: |
|