12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- .. _func_file_loaddir:
- =======
- LoadDir
- =======
- LoadDir -
- Description
- ===========
- .. code-block:: blitzmax
- LoadDir$[]( dir$,skip_dots=True )
- Load a directory
- The @skip_dots parameter, if true, removes the '.' (current) and '..'
- (parent) directories from the returned array.
- Parameters
- ==========
- Return Values
- =============
- A string array containing contents of @dir
- Examples
- ========
- .. code-block:: blitzmax
- ' loaddir.bmx
-
- ' declare a string array
-
- local files$[]
-
- files=loaddir(currentdir())
-
- for t$=eachin files
- print t
- next
- See Also
- ========
|