Programming Manual Keyboard
SATO Europe
36
OPEN
Description
To establish file handles for file access. Up to 15 files can be accessed in one
program.
Syntax
OPEN “filename” FOR mode AS #FileHandle.
Remarks
Filename is the name of the file.
Mode specifies the file operation mode. It can be:
INPUT: Position to the beginning of the file and this file is “read only”. If the
file does not exist, the “File not found” error is displayed on LCD
display.
OUTPUT: Position to the beginning of the file, and this file is “write only”. If the
file does not exist, a new file is created.
APPEND: Append characters to the end of file.
FileHandle is a constant number or expression result, between 0 and 14.
Remember to close the file handle when the file is no longer used
.
Example
OPEN “DATA1” FOR INPUT AS #1
OPEN “DATA2” FOR OUTPUT AS #2
Содержание Smart Keyboard
Страница 1: ...SATO Smart Keyboard Programming manual...
Страница 90: ...Programming Manual Keyboard SATO Europe 88...
Страница 93: ......