GetFileName

Pushkins 156 Reputation points
2021-09-14T00:03:58.427+00:00

Hi

I have a problem with GetFileName when getting directory names. If the directory name contains a dot as in Mydir.ectory all I get is Mydir.

If there is no dot as in Mydirectory then it works and I get Mydirectory.

I am guessing it has something to do with extensions. How can I avoid this and get the full directory name even if it contains a dot.

Thank you

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,753 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.