Home
Products
Community
Manuals
Contact
Login or Signup

BlitzMax Docs -> 2D - A-Z -> R -> ReadDir

ReadDir( path$ )

Returns:

An integer directory handle, or 0 if the directory does not exist

Description:

Open a directory

Example:

' readdir.bmx

dir=ReadDir(CurrentDir())

If Not dir RuntimeError "failed to read current directory"

Repeat
	t$=NextFile( dir )
	If t="" Exit
	If t="." Or t=".." Continue
	Print t	
Forever

CloseDir dir 

Comments

None.

BlitzMax Manual Forum

Blitz3D Equivalent Command