In qbasic I want to write a file like this:
OPEN "C:\Whatever.bas" for OUTPUT AS #1
PRINT #1, stuff
CLOSE #1
But I want to add stuff to the file as I go along. How do I do this?
Printable View
In qbasic I want to write a file like this:
OPEN "C:\Whatever.bas" for OUTPUT AS #1
PRINT #1, stuff
CLOSE #1
But I want to add stuff to the file as I go along. How do I do this?
if you intend to keep closing the file between writing data, then upen it for APPEND instead of OUTPUT
You could do that ^ , or what i do is you can not close it until the program is over with, that way it isn't being opened and closed over and over