Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..

I want to know if java has any special char to declare a file path without using double slashes between every directories..

As a example,

If I want to declare the file "D:\xmlfile.xml", I have to insert another slash followed by the slash it already has and it must be looks like "D:\\xmlfile.xml"

But in C# language it has a special char to consider all the chars between quotations.
Therefore in C# the same path can be declared like @"D:\xmlfile.xml" without using another slash..

All I want to know is if java has too a special char like "@" in C# to consider all the chars between quotations !

Thanks in advance !
Posted

I'm not a Java expert, but I don't think there is. :-(

A few Google searches was enough to convince me.
 
Share this answer
 
Comments
M­­ar­­­­k 27-Apr-14 5:52am    
Sad to hear about that :(
anyway thanks for your concerning!
 
Share this answer
 
Comments
M­­ar­­­­k 27-Apr-14 5:52am    
Sad to hear about that :(
anyway thanks for your concerning!
OriginalGriff 27-Apr-14 5:53am    
You're welcome!
 
Share this answer
 
Comments
M­­ar­­­­k 27-Apr-14 5:52am    
Sad to hear about that :(
anyway thanks for your concerning!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900