Spectrum
01-02-08, 03:29 AM
I need help writing to a file that is running. I am programming in QBasic but any advice would be welcome (preferably debug for windows (which I understand is an assembler)). My programs are as follows:
open [THISFILENAME$] for random as #1
while eof(1)=0
get #1
put #1
wend
close #1
...or...
open [THISFILENAME$] for random as #1
for address=1 to lof(1)
get #1, address
put #1, address
next address
close #1
The programs above do write to the file but I have to close down the program to see what has been written. I want the data to be written to the file, not simply to memory.
open [THISFILENAME$] for random as #1
while eof(1)=0
get #1
put #1
wend
close #1
...or...
open [THISFILENAME$] for random as #1
for address=1 to lof(1)
get #1, address
put #1, address
next address
close #1
The programs above do write to the file but I have to close down the program to see what has been written. I want the data to be written to the file, not simply to memory.