Enumerates files by given wildcard.

char *Resource_EnumFiles(
  const char *wildcard = 0


Absolute or relative wildcard including "?" and "*" special characters to start new enumeration, or 0 to continue previously started enumeration.

Return value

Returns the next found file name or 0 if there's no more files.


Resource_EnumFiles returns plain file names without their path. It also skips folders, use Resource_EnumFolders to enumerate folders.

To enumerate all files in a folder use "*" wildcard character. Eg. Resource_EnumFiles("data\\*") will start enumeration of all files within folder "data" that is placed in the application folder.


Header: hge.h
Import library: hge.lib

See also

Resource_EnumFolders, Resource_MakePath