Cool Line Input feature
#3
Yeah, Line Input reads one line each time you use it, into one string variable that you specify.  To read more lines, you need to use a loop or multiple Line Inputs.  The underlying file I/O handler keeps track of where you left off after the last read.

Code: (Select All)
Print "Input allows us to read multiple comma-separated numeric values...."
Input "type 3 numbers: "; a, b, c
Print ">> "; a, b, c
Print



Print "Line Input lets us read only one line as a string per invocation...."
Do
    Line Input "type a line: "; a$
    Print ">> "; a$
    Print
Loop Until a$ = "bye"
Reply


Messages In This Thread
Cool Line Input feature - by bert22306 - 09-13-2022, 02:18 AM
RE: Cool Line Input feature - by Pete - 09-13-2022, 02:47 AM
RE: Cool Line Input feature - by JRace - 09-13-2022, 05:11 AM



Users browsing this thread: 2 Guest(s)