Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

properties file with spaces in key.

user10260017Dec 13 2010 — edited Dec 13 2010
Hi,

I need to parse a properties file which have space in the key.

ex: First Name = xxx

loadUserProperties.getProperty("First Name") is throwing null pointer exception.

Any clue on how to over come this as this file is provided by some third party and I have no control on the keys in the file. I need to get the values from that properties file for further processing.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2011
Added on Dec 13 2010
3 comments
3,406 views