Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting certain filenames in directory

Status
Not open for further replies.

emperorevil

Programmer
Apr 28, 2002
23
0
0
US
How can I get a list of filenames in a directory that fit a "template."
Example (this is the actual program):
The user types in some text in a text box on a dialog box. He/she types in "Map####.lmu". And now I want to get a list of all the files that start with "Map", end with ".lmu", and have a 4 digit number in the middle. How would I do that?
 
hhhmm
get the full list and run a reg exp on it, u would need an algorithm to convert the Template into a Reg Exp, and as im a borland guy im not sure Reg Exp is implemented in MSVC++
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top