09-27-2022, 09:27 PM
Were you thinking of something like this
R$="Record"
Ext$=".DAT"
For i = 16 to 18
Rnum$=str$(i)
Open R$+LTRIM$(Rnum$)+Ext$ for Output as #i
R$="Record"
Ext$=".DAT"
For i = 16 to 18
Rnum$=str$(i)
Open R$+LTRIM$(Rnum$)+Ext$ for Output as #i