Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Feature Request: Limit Scope of a "Find" and "Change" hanness 5 718 06-21-2025, 11:21 PM
Last Post: SMcNeill
  Program line Chris 10 1,292 04-06-2025, 10:28 PM
Last Post: TempodiBasic
  Mix mode input of a binary open file Question! doppler 5 1,471 11-28-2024, 03:06 PM
Last Post: Petr
  I need input on a possible bug in v3.5.0 TerryRitchie 50 8,375 05-22-2024, 07:03 PM
Last Post: TerryRitchie
  Input routine dano 9 1,526 05-21-2024, 03:50 AM
Last Post: grymmjack

Forum Jump:


Users browsing this thread: