`prev Menu next`

Difference between Full BASIC and Microsoft BASIC

Text Files

Corresponding commands shown to the right.

OPEN "ABC.TXT" FOR INPUT AS #1 OPEN "ABC.TXT" FOR OUTPUT AS #1 OPEN "ABC.TXT" FOR APPEND AS #1 PRINT #1, A;B,C$ PRINT #1,USING "###";A INPUT #1,A,B,C$ | OPEN #1: NAME "ABC.TXT" ,ACCESS INPUT OPEN #1: NAME "ABC.TXT" ERASE #1 OPEN #1: NAME "ABC.TXT" ,ACCESS OUTPUT PRINT #1: A;B,C$ PRINT #1,USING "###":A INPUT #1:A,B,C$

EOF-function

WHILE NOT EOF(3) LINE INPUT #3,A$ PRINT A$ WEND | DO LINE INPUT #3,IF MISSING THEN EXIT DO:A$ PRINT A$ LOOP

Open a file as internal for WRITE statements.
Example.
`OPEN #1: NAME "ABC.TXT" ,RECTYPE INTERNAL`