Keep in mind, a \ is an escape character. When you put \", you're telling
the compiler that you want to put a " in the string. To ensure that \ is
seen as a \, you have to escape it by putting two of them together like so:
\\.
In the replace try the following: s = s.Replace("\\","/");
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"Eugene Anthony" <so***********@yahoo.comwrote in message
news:uq**************@TK2MSFTNGP04.phx.gbl...
For the code bellow I am receiving a new line error.
String s = "C:\My document\Mama";
s = s.Replace("\","/");
How do I solve the problem?
Eugene Anthony
*** Sent via Developersdex http://www.developersdex.com ***