Link to home
Start Free TrialLog in
Avatar of karthik_cs
karthik_cs

asked on

How do I use comma as part of the value in a properties file

I am having a comma in the value of property file(.properties). I am using java.util.Properties to get key and value.
for eg address=123,ABC Street
Here "123,ABC Street " should be the value. But I am not able to use a escape character for comma
Tried placing in double quotes and using back slash before comma.
Is there a way to use comma in the value
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland 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 karthik_cs
karthik_cs

ASKER

Then it would give me 123 and ABC Street as two values. Is there a way to get "123, ABC Street" as one value
:-)


>>Then it would give me 123 and ABC Street as two values
No - as one value