05-28-2023, 04:26 AM
The assembly into one big text file could be done by the QB64 program you're writing. Just use another filename for the output file.
I thought you knew more about BASIC programming...
If you are able to put a zero for a value below ten to create a two-digit number inside a filename, eg. "capture01.txt" instead of "capture1.txt", it could save you a headache looking at it in a file manager. Although the other way, "capture1.txt" through "capture9.txt" then "capture10.txt" is easier to program.
Code: (Select All)
fout = FREEFILE
OPEN "capture-big.txt" FOR OUTPUT AS fout
PRINT #fout, "START OF REPORT"
FOR i = 1 to 10
if i < 10 then infil$ = "0" else infil$ = ""
infil$ = "capture" + infil$ + ".txt"
fin = FREEFILE
OPEN infil$ FOR INPUT AS fin
DO UNTIL EOF(fin)
LINE INPUT #fin, entry$
PRINT #fout, entry$
LOOP
CLOSE fin
NEXT
PRINT #fout, "END OF REPORT"
CLOSE fout
I thought you knew more about BASIC programming...
If you are able to put a zero for a value below ten to create a two-digit number inside a filename, eg. "capture01.txt" instead of "capture1.txt", it could save you a headache looking at it in a file manager. Although the other way, "capture1.txt" through "capture9.txt" then "capture10.txt" is easier to program.