READ#
VIC-20 C16 Plus/4 C64 C128 M65
The READ#
command is used for restoring the contents of a variable from a file. The file must be opened first using OPEN.
Syntax
READ #<logical_file_no>, <variable> [, <variable> ... ]
The READ#
command is similar to INPUT# in that both commands read sequential data from a file, however while INPUT#
accepts PETSCII-encoded (textual) data, READ#
accepts binary data. To put it simple:
Note
READ
accepts any number of variables of any type, even User-Defined Types.
For an in-depth explanation of file input-output operations with examples, please read File I/O.
Warning
File I/O commands are not implemented for the Commodore PET.