"Mikheil" <mi****@global-erty.net> wrote in message
news:d8**************************@posting.google.c om...
Hello!
I need to translate file destination name with one backslashes
"c:\program files\directory\file.txt"
to string containing double backslashes
"c:\\program files\\directory\\file.txt"
If there is a nativi function on C++, or any algolithms I'd be glad
to know about them.
Thank you
I think you are confused, a double backslash is just the way you write a
single backslash in C++.
"\\" - this string is a single backslash.
"\\\\" - this string is a double backslash.
If you have a string in memory with single backslashes then it will work to
open a file. If you have a string in your program code, then you *type*
double backslashes. There is no need to replace single backslashes with
double blackslashes programmatically.
john