Argox PA-20 Basic Programming Manual Manuale Utente Pagina 80

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 143
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 79
PT-Basic Programming Manual Ver. 1.00 79/143
GET$
Purpose
Read a line terminated by a null character “\0” from a file.
Syntax
FileData$ = GET$ # FILEID%
Example
WHILE (EOF#FILEID% <> -1)
Str$=GET$ # FILEID%
PRINT Str$
WEND
Description
FileData$ is a string to be returned to the result.
FILEID% is an integer variable indicating the file handle.
You can use the GET_FILE_ERROR command to get the
file error code. Possible error codes and their interpretation
are listed below:
GET_FILE_ERROR
Meaning
2
File specified does not exist.
7
File not opened
BPUT
Purpose
To write data to a file.
Syntax
BPUT # FILEID% , <expr 1>, <expr 2>, ... ,<expr n>
Example
AAA%=168
BPUT # FILEID%,STR$(AAA%),"HELLO"
Description
FILEID% is an integer variable, indicating the file handle.
expr 1 ~ expr n is string expression indicating the string data
to write to file.
You can use the GET_FILE_ERROR command to get the
file error code. Possible error codes and their interpretation
are listed below:
GET_FILE_ERROR
Meaning
2
File specified does not exist.
7
File not opened
10
Not enough memory to write to
file.
Vedere la pagina 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 ... 142 143

Commenti su questo manuale

Nessun commento