FE MONITOUCH V8 SERIES Reference: Additional Functions page 403

Table of Contents

Advertisement

23
Macro
Example
• File read
The file "ABC.DAT" is read from its 11th byte by 512 bytes into $u1000 to $u1255.
$u00100 = 'C:\DAT0000\ABC\ABC.DAT'
$u00200 = 512 (D)
$u00202 = 10 (D)
$u00204 = 0 (W)
READ_FILE $u00100 $u01000 $u00200 $u00300
• File size acquisition
The size of the file "ABC.DAT" is read into $u300.
$u00100 = 'C:\DAT0000\ABC\ABC.DAT'
$u00200 = 0 (W)
$u00202 = 0 (W)
$u00204 = 0 (W)
READ_FILE $u00100 $u01000 $u00200 $u00300
Supplementary information
• If any characters other than alphanumerics are used to specify a source full pathname, this macro
command may not work normally. Be sure to use alphanumerics.
• Wildcard characters (such as "*" and "?") cannot be used for a full pathname as the source.
• If the file specified as the source does not exist, an error will result.
• If an illegal full pathname is specified, this macro command does not work. An error will result.
• In the event of an error during file reading, the data having been read is stored in memory.
However, the size of the data does not affect the successfully read data size in [F3] and [F3 + 1].
• For the V8 series, the result of macro execution is stored in $s1062.
When the execution of the macro is normally complete, the value at the address is not updated.
Therefore, before macro execution, resetting the value at the address to zero is recommended.
Code (DEC)
−1
23-34
[Source full pathname]
[Size]
[Offset]
[0 fixed]
[Source full pathname]
[0 fixed]
[0 fixed]
[0 fixed]
Description
Execution error

Advertisement

Table of Contents
loading

Table of Contents