Searching for Partial File Name or File Prefix?
Posted: Mon Oct 05, 2020 8:51 pm
Is there a way to search for a partial file name? For example, if I want to save level data on in a file with the prefix LEVEL + a descriptor is there then a way to search for files that start with LEVEL so that a level could be loaded from that save file? (Each of my levels can be stored in a single simple array or list.)
In the past, I've got around this by having a secondary save file that stores all the file names. But I'm curious if there is a better way to make this happen.
In the past, I've got around this by having a secondary save file that stores all the file names. But I'm curious if there is a better way to make this happen.