Topic : The GFA-Basic Compendium Author : GFA Systemtechnik GmbH Version : GFABasic.HYP v2.98 (12/31/2023) Subject : Documentation/Programming Nodes : 899 Index Size : 28056 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : @default : Document not found @help : Help @options : +g -i -s +z @width : 75 @hostname : STRNGSRV @hostname : CAB @hostname : HIGHWIRE @hostname : THING View Ref-FileINPUT$(count[,#n]) n, count: iexp INPUT$() reads 'count' characters from the keyboard and assigns them to a string. Optionally, if the channel number n (0 to 99) is specified, the characters are read in as bytes from a file or peripheral device. In both cases the numerical expression 'count' determines the number of characters read. Example: OPEN "o",#1,"VERSION.DAT" PRINT #1,"GFA BASIC, Version 3.0" CLOSE #1 ' OPEN "i",#1,"VERSION.DAT" v$=INPUT$(9,#1) CLOSE #1 PRINT v$ PRINT "Please type in the Version number: "; PRINT INPUT$(3) --> In the first part of the example the file 'VERSION.DAT' is opened and a message printed to it. The second part reads the first 9 characters of this file into the variable v$ and displays v$ on the screen. Then a message appears, and 3 characters are taken from the keyboard and printed. Memo: INPUT$(count,#n) incorrectly returns error code 0 if the #channel number is wrong. Fread()+