![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jun 2006
Posts: 15
Rep Power: 0
![]() |
"\"
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. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| solved - Error before token "{" | Daniel_kd | C | 3 | Apr 15th, 2005 12:00 PM |