EasyManua.ls Logo

Commodore 2031 - Input

Commodore 2031
98 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
INPUT#
The INPUT# command is used to transfer information from an IEEE device
such as the disk drive into computer memory. INPUT# is valid only when used
in a program and only when referencing a logical file that has been OPENed for
input.
The format for INPUT# is:
INPUT#lfn,A$ or INPUT#lfn,A
Where: lfn = a file previously opened using secondary address 15
A$ = a string variable which will contain the data transferred.
A = a numeric variable which will contain the date transferred.
INPUT# may also be used to transfer several strings of data at one time:
INPUT#lfn, A$,B$,C$
Where: A$, B$, C$ will contain the data transferred from the disk.
In this format, the data strings must have been separated by carriage returns
(CHR$(13)) at the time they were written tho the disk in order to be retrieved
separately. No single string may contain more than 80 characters if it is to be
INPUT.
EXAMPLE 1:
*
*
20 INPUT#2,A
*
Input the next data item which must be in numeric form and
assign the value to variable A.
EXAMPLE 2:
*
*
10 INPUT#8,A$
*
Input the next data item as a string and assign it to variable
A$.
EXAMPLE 3:
*
*
60 INPUT#7,B,C$
*
Input the next two data items and assign the first to numeric
variable B and the second to string variable C$.
For strings longer than 80 characters, the GET# command must be used.
36

Table of Contents

Other manuals for Commodore 2031

Related product manuals