Quote Originally Posted by monarch_dodra View Post
Yes, what Marc said. You must understand that \ is an escape character. Writing '\\' in c++ is actually a single character, and the string "c:\\programs" actually contains only 1 backslash. Most probably you shouldn't need my solution.
Yes, but the thing it's that I'm reading a file path from a text file, with the format

C:\Folder\fileName.txt

Some methods don't read '\' as a backslash, but an escape character combined with 'f' ('\f'). So that's why I need to change a single backslash for a double backslash.

I'm going to try your suggestion! Let's see...