For I/O paths assigned to BDAT and regular files, all registers can be read with the STATUS command. Only registers greater than 4 can be set with the CONTROL command. regular files are listed by CAT with a blank file type or the name of the operating system.
0 - ASSIGN status: 0 - not assigned, 2 - assigned to a file. A Windows device looks like a file to HTBasic when assigned using its Windows name
1 - File type: 2 - BDAT file, 4 - regular file
2 - Always 4
3 - Current number of records.
4 - Record size. For regular files, the record length is always 1
5 - Current record
6 - Current byte within record
7 - EOF record
8 - Byte within EOF record
EOF record and byte define the position of the first byte after the last byte in the file.
|