DIR (Documentation Bugs and Problems)
It seems to me: Example DIR using is not right.
f$ = dir("c:\")
while f$ ""
print f$
f$ = dir()
end while
probably
f$ = dir("d:\dos\")
while f$<>""
print f$
f$ = dir()
end while
is better.
Complete thread: