45
99  23, 17
-6.6
 
INPUT #7, SALE

Answer:

The value 99 is read into SALE. The number "99" is separated from the other numbers by the end-of-line that preceeds it and the spaces that follow it.

Next INPUT

Say that the "45" and the "99" have been read. Since this is a sequential file, the next item to be read is the next one in sequence, the "23" on the second line. This value is separated from the others by spaces that preceed it and the comma that follows it.

45
99  23, 17
-6.6

Notice that the INPUT # statement stays on the same line until all the groups on that line have been read. It moves through the file, item by item, not line by line. The next item that will be read is the "17" on line two.

After the 17 has been read, and INPUT # statement will move on to the next line and read the "-6.6" on the last line.

QUESTION 9:

May numbers with a decimal point be input?

May negative numbers be input?