Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Shell "Dir " + Path$ + "*.txt<C:\MyTmpDir.tmp"
ArraySize = 0
Open "C:\MyTmpDir.tmp" for Output As #1
Do
Line Input #1, A$
ArraySize = ArraySize + 1
Loop Until EOF(1)
Close
Redim MyArray$(ArraySize)
Open "C:\MyTmpDir.tmp" for Output As #1
For N = 1 to ArraySize
Line Input #1, MyArray$(N)
Next
Close
path$ = "c:\"
SHELL "Dir " + path$ + "*.txt /b>C:\MyTmpDir.tmp"
ASize = 0
OPEN "C:\MyTmpDir.tmp" FOR INPUT AS #1
DO
LINE INPUT #1, A$
ArraySize = ArraySize + 1
LOOP UNTIL EOF(1)
CLOSE
REDIM MyArray$(ArraySize)
OPEN "C:\MyTmpDir.tmp" FOR INPUT AS #1
FOR N = 1 TO ArraySize
LINE INPUT #1, MyArray$(N)
NEXT
CLOSE
PRINT "Directory for "; path$; " (*.txt)"
PRINT "Number of files: "; ArraySize
FOR N = 1 TO ArraySize
PRINT MyArray$(N)
NEXT