J
Julie
Why does the faq make this statement regarding slashes in paths:
"This is because the library routines
on these operating systems handle "/"
and "\" interchangeably. "
http://www.parashift.com/c++-faq-lite/input-output.html#faq-15.16
This seems like completely the wrong answer for this question. Rather than
saying that you should use forward slash as a delimiter, it should say
something to the effect of "refer to your operating system documentation on how
to specify paths/subdirectories, remembering that in a string literal in C++
the back-slash (\) character modifies the following character, and therefore
operating systems that use a backslash as a directory delimiter should be
encoded as '\\'.
Comments?
"This is because the library routines
on these operating systems handle "/"
and "\" interchangeably. "
http://www.parashift.com/c++-faq-lite/input-output.html#faq-15.16
This seems like completely the wrong answer for this question. Rather than
saying that you should use forward slash as a delimiter, it should say
something to the effect of "refer to your operating system documentation on how
to specify paths/subdirectories, remembering that in a string literal in C++
the back-slash (\) character modifies the following character, and therefore
operating systems that use a backslash as a directory delimiter should be
encoded as '\\'.
Comments?