Link to home
Start Free TrialLog in
Avatar of xoxomos
xoxomos

asked on

code file path in windows

i need to code the path to a file in windows.  How do i do that.  
theFile = C:\new folder\new folder\new folder number two\xxx.txt.
When i compile it's seen as a illegal escape character.
ASKER CERTIFIED SOLUTION
Avatar of imladris
imladris
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of black
black

actually you can just use "/" to separate it will work as the separator for all platforms i.e:
theFile = "C:/new folder/new folder/new folder number two/xxx.txt";
Did you find this answer helpful? If so, then it is now time to grade the answer.

If not, perhaps a clarifying question would help.
Avatar of xoxomos

ASKER

Sorry!!!.  Yeah.  First I forgot, then i was having trouble connecting.  Thanks.
Avatar of xoxomos

ASKER

Sorry!!!.  Yeah.  First I forgot, then i was having trouble connecting.  Thanks.
Avatar of xoxomos

ASKER

Sorry!!!.  Yeah.  First I forgot, then i was having trouble connecting.  Thanks.