readdir.bmx 262 B

123456789101112131415
  1. ' readdir.bmx
  2. SuperStrict
  3. Local dir:Byte Ptr = ReadDir(CurrentDir())
  4. If Not dir RuntimeError "failed to read current directory"
  5. Repeat
  6. Local t:String = NextFile( dir )
  7. If t="" Exit
  8. If t="." Or t=".." Continue
  9. Print t
  10. Forever
  11. CloseDir dir