Thread: "\"
View Single Post
Old Dec 12th, 2006, 5:24 PM   #1
Xian_Fung
Newbie
 
Join Date: Jun 2006
Posts: 15
Rep Power: 0 Xian_Fung is an unknown quantity at this point
"\"

I'm trying to replace occurances of "\" to "/" in a string containing a directory. Unfortunately java expects an escape character to go with it and throws off what it believes to be a string, if that makes any sense.

Doesn't work of course --> dir.replace("\", "/");

I do have a sad, but functional solution. I wanted to know if there are any better ways. -Thank you.
__________________
What? Outside??? I have heard of that thing before, but I can't remember the details.
Xian_Fung is offline   Reply With Quote