|
-
August 6th, 2009, 06:59 AM
#4
Re: Problem with system paths
 Originally Posted by monarch_dodra
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...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|