Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
solved - Error before token "{" Daniel_kd C 3 Apr 15th, 2005 12:00 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:31 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC