'open a file to read as #1. Assumes filenames are printed vertically.
DO UNTIL EOF(1)
count% = count% + 1
LINE INPUT #1, file$
Array$(count%) = file$
IF count% MOD 20 = 0 THEN
PRINT "Click a file name or Press Enter to continue!"
'mouse read for click position LB% is left click button
'convert graphics row to text row position: row% = (grow% \ 16) + 1
'rows determined by screen mode, but SCREEN 0 returns graphic values \ 8
LOOP UNTIL LB% OR INKEY$ = CHR$(13)
'save row number as array position to reuse
count% = 0
IF LB% THEN EXIT DO 'read file name from array later
Proper PRINT row positions will need to be determined by the screen mode and programmer. I never got around to finding mouse clicks yet. Sorry.