I have a string "MyFile.doc". In the end, I would like ".doc". So, I would like to try to find the location of the ".", and then take the rest of the string. How can this be done?
It's unwise to write your own file/path handling functions, as you'd be unlikely to handle some of the stranger cases, such as UNC paths, and long Unicode paths (start with "/?///", IIRC, and are longer than MAX_PATH (255 characters))
Chip H.
If you want to get the best response to a question, please check out FAQ222-2244 first
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.