the file folder name it's a string, so how can i compare a string with a file name? or C++ have another type?
i want create a function(with same name but use differents arguments) that accepts a file name instead a normal string. what you can advice me?
more than that..
we can have on same string:
"hello world"
or
"C:\\faldername\\filename.txt"
seen these what is the difference between the 1st string and the second?
i can't compare "C:\\", because we can use another drive. maybe compare the 3 last chars, right? because i only need 1 or 2 extensions
If you're actually just interested in comparing strings, then they're just strings. Just compare them, or compare substrings of them, like any other string.