You just need to put the files into an array so you can open them at will.
` Make the checklist of files
perform checklist for files
` Make MaxFiles = checklist size
MaxFiles=CHECKLIST QUANTITY()
` Make an array the size of the checklist
dim File$(MaxFiles)
` Look at the first file in the checklist
find first
` Go thought the whole checklist
for t=0 to MaxFiles
` Get the filename and put it into the array
File$(t)=get file name$()
` Get the file type 0=File (color grey) 1=Directory (color white)
a=get file type()
if a=0 then ink rgb(100,100,100),0 else ink rgb(255,255,255),0
a$="File$("+str$(t)+") = "
print a$+File$(t)
` Look at the next file in the checklist
if t<MaxFiles then find next
next t
wait key