GLBasic User Manual

Main sections

CREATEDIR()

ok% = CREATEDIR(dir$)



Creates a new file directory. ok% indicates whether the directory could have been created (TRUE) or not (FALSE).

Example:
ok = CREATEDIR("testdir")
IF ok = TRUE
    PRINT "Directory was created",0,0
ELSE
    PRINT "Directory was not created",0,0
ENDIF
SHOWSCREEN
MOUSEWAIT


The directory created by this example will be located under the "appname.app" directory.

See also...