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 #n,var1 [,var2,var3,...] LINE INPUT #n,a1$ [,a2$,a2$,...] n: iexp var1, var2, var3, a1$, a2$, a3$: avar or svar Parameter n is the channel number which was previously opened with OPEN. INPUT #n makes it possible to take data from a file or a peripheral device. Individual variables or variable lists (where the variables are separated by commas) can be input. This instruction corresponds to INPUT, except that it deals with files. LINE INPUT # corresponds to LINE INPUT except that it deals with files. Example: OPEN "o",#1,"TEXT.DOC" WRITE #1,"Goodbye","Hello","Hello, Hello, Hello" CLOSE #1 ' OPEN "i",#1,"TEXT.DOC" INPUT #1,a$,b$ LINE INPUT #1,c$ CLOSE #1 PRINT a$ PRINT b$ PRINT c$ --> Three strings are written to the file TEXT.DOC. The first two are read back in with INPUT #, the third with LINE INPUT #, as it contains commas. The three strings are printed. Memo: Issues wrong error code, #35 should be #25. These commands are limited to 254 characters. Fread()+