CPCWiki forum

General Category => Programming => Topic started by: Fabrizio Radica on 16:09, 21 September 17

Title: BASIC - How to append data into text file.
Post by: Fabrizio Radica on 16:09, 21 September 17

Hi :)
I've a little problem.
I would like to append sequential data over file, every time i insert an input.


can you help me? :)
Ciao!
Title: Re: BASIC - How to append data into text file.
Post by: SRS on 20:10, 21 September 17
You mean like this ?

10 MODE 2
20 OPENOUT"flowtxt.txt"
30 INPUT a$
40 IF a$="***END***" GOTO 70
50 PRINT #9,a$
60 GOTO 30
70 CLOSEOUT
80 CAT


[attachimg=1]

Title: Re: BASIC - How to append data into text file.
Post by: Fabrizio Radica on 07:51, 22 September 17
Quote from: SRS on 20:10, 21 September 17
You mean like this ?

10 MODE 2
20 OPENOUT"flowtxt.txt"
30 INPUT a$
40 IF a$="***END***" GOTO 70
50 PRINT #9,a$
60 GOTO 30
70 CLOSEOUT
80 CAT


[attachimg=1]

Thank's Mate, Perfect!!! :D
Ciao!
Powered by SMFPacks Menu Editor Mod