Directory reading function (SOLVED)

Started by Radiant, Mon 03/04/2006 23:21:09

Previous topic - Next topic

Radiant

It would be useful to have a function or functions to enumerate files in a directory. It's ok if it would be limited to the game's directory itself, for security reasons.

The easiest way is probably a "string FindFirstFile (const string filespec)" and "string FindNextFile (void)".

Anyone else who'd find this useful?

Pumaman

I'm not sure it's really necessary, when there's the easy workaround of creating a hidden list box and using FillDirList.

Radiant

Oh sorry, I was unaware it was possible to fill those with anything other than saved games.

SMF spam blocked by CleanTalk