wildcard interpretation
-
Hi everybody, I am currently working on a program for which I need to select filenames based on a template that can include wildcards. Since I get the filenames in a fixed list from another system, I cannot use the wilcards in retrieving the filenames in the first place. I would like to use wildcards the "Unix way", which means that for example "ABC*DEF*G?I.xyz" would be a possible wildcarded template to which not anything starting with ABC should match! Of course, I can write such an algorithm, but since I am lazy, I would appreciate if anyone out there knows of a library that will do the job? Would save me a lot of work! Thanks in advance! William
-
Hi everybody, I am currently working on a program for which I need to select filenames based on a template that can include wildcards. Since I get the filenames in a fixed list from another system, I cannot use the wilcards in retrieving the filenames in the first place. I would like to use wildcards the "Unix way", which means that for example "ABC*DEF*G?I.xyz" would be a possible wildcarded template to which not anything starting with ABC should match! Of course, I can write such an algorithm, but since I am lazy, I would appreciate if anyone out there knows of a library that will do the job? Would save me a lot of work! Thanks in advance! William
Have a look at CFileFinder - Extend the functionality of CFileFind MFC class[^].
It is a crappy thing, but it's life -^ Carlo Pallini
-
Hi everybody, I am currently working on a program for which I need to select filenames based on a template that can include wildcards. Since I get the filenames in a fixed list from another system, I cannot use the wilcards in retrieving the filenames in the first place. I would like to use wildcards the "Unix way", which means that for example "ABC*DEF*G?I.xyz" would be a possible wildcarded template to which not anything starting with ABC should match! Of course, I can write such an algorithm, but since I am lazy, I would appreciate if anyone out there knows of a library that will do the job? Would save me a lot of work! Thanks in advance! William
wildcard interpretation == "globbing" (yeah, I know - don't ask me where the name came from). This CodeProject article[^] has (or claims to have) globbing code.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p