I am writing a function
std::string function return_fname(int cmd_id)
where an integer cmd_id is passed in for example 003
I need to parse through a directory of filenames looking for the filename that starts with 003, and return it.
I have no idea where to begin to ID the individual filenames in the list, capture the filename. Is there a built in function that will do this, is it a stream function, a string function, as you can see the filenames are all structured differently except that the first 3 characters is a 3 digit number and the extension is .dat Each file has a unique first 3 characters.