I would like to search a file or files whose names begin with a specified set of characters...
is that possible? something like a wild character...
I would like to search a file or files whose names begin with a specified set of characters...
is that possible? something like a wild character...
Only by the cross are you saved...
Get the list of filenames. (That depends on your operating system.) Then use strncmp to compare what you have to what you're looking for.Originally posted by fkheng
I would like to search a file or files whose names begin with a specified set of characters...
is that possible? something like a wild character...
That's not the most flexible way, but it does what you're asking without much work.
wat i mean is can i search and obtain filenames which begin with a specified set of characters?
Only by the cross are you saved...
just use the code in the faq and run strstr