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-FilePRINT #n,expression PRINT #n,USING form$,expression WRITE #n,expression n: iexp form$: sexp expression: aexp or sexp or a combination PRINT #n outputs data to a specified channel. Parameter n (0 to 99) denotes the required channel. Otherwise the instruction operates like PRINT. PRINT #n AT, however, is not possible. PRINT #n USING allows formatted output to a data channel. The parameter n (0 to 99) denotes the required channel. Otherwise the instruction operates like PRINT USING. The instruction WRITE # serves primarily for the space-saving storage of data in sequential files in a format suitable for later reading with INPUT #. The expressions are separated by commas and character strings must be enclosed in quotation marks. The parmater n (0 to 99) denotes the required channel. Otherwise the instruction operates like WRITE. Examples: OPEN "o",#1,"TEXT.DOC" PRINT #1,"test" CLOSE #1 ' OPEN "i",#1,"TEXT.DOC" INPUT #1,a$ CLOSE #1 PRINT a$ --> The string 'test' is printed to the file TEXT.DOC, which is then closed and re-opened for input. INPUT # takes the string from the file as a$, which is then printed on the screen. OPEN "o",#1,"TEST.DAT" WRITE #1,"Version ",3,".0" CLOSE #1 ' OPEN "i", #1,"TEST.DAT" INPUT #1,v1$,v2$,v3$ CLOSE #1 PRINT v1$+v2$+v3$ --> Data separated by commas is put into the file TEST.DAT and afterwards read back in again with INPUT # and displayed on the screen. Fwrite()+