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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:-)
>>Then it would give me 123 and ABC Street as two values
No - as one value
>>Then it would give me 123 and ABC Street as two values
No - as one value
ASKER