PDA

Click to See Complete Forum and Search --> : Creating files for QB in QB. Help!


superkat
Feb 4th, 2001, 09:46 AM
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?

Feb 4th, 2001, 10:13 AM
if you intend to keep closing the file between writing data, then upen it for APPEND instead of OUTPUT

Rh0ads
Feb 5th, 2001, 09:04 AM
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