LINPUT
LINPUT [#fileN,] var
Reads a whole text line from file or console and stores it in the
string var
. If a file handle #fileN
is
specified, LINPUT will read from the corresponding file otherwise it
will read from the console. LINPUT has the same function as
LINEINPUT.
Example 1: Read from console
LINPUT S
PRINT S
Example 2: Read from file
' create a file
open "File.txt" for output as #1
print #1, "First line"
print #1, "Second line"
close #1
' open file and print content
open "File.txt" for input as #1
LINPUT #1, S
Print S
LINPUT #1, S
Print S
close #1
Console
AT
BEEP
CAT
CLS
DEFINEKEY
FORM
INKEY
INPUT
LINEINPUT
LINPUT
LOCATE
LOGPRINT
NOSOUND
PEN
PLAY
PRINT
SOUND
TAB
If there is insufficient information on this page and you wish learn more about LINPUT,
please send an email to smallbasic@gmail.com. You can help to improve information about
LINPUT by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.