line one string two, string three 123 456 789
INPUT #5, WORDS$
The string read into the variable is "string two" without any spaces at either end, but containing one space in the middle (and not containing the quote marks).
The characters from the second line, up to the comma, are read into
the variable WORDS$
.
The leading spaces and the comma itself are not included
in the string assigned to the variable.
Another execution of the statment
INPUT #5, WORDS$
will read in the characters "string three" with no spaces at either end. Now everything except the characters on the third line has been read.
What is read in when
INPUT #5, WORDS$
is executed again? (Hint: this is a trick question.)