David
David

Reputation: 3648

Load a properties file in java

i am using java to load conf file which is using by python application:

[session_manager] 
host=1.2.3.4

[log_manager] 
host=7.8.9.1

I known that we have a Properties class to load a regular properties file in java. But this file is diffrent. Does java have any class to load that file, so that we can get properties like that:

session_manager.host=1.2.3.4
log_manager.host=7.8.9.1

Upvotes: 1

Views: 117

Answers (1)

ChrisKo
ChrisKo

Reputation: 365

Its not a properties file even if it is looking similar. Those are ini-files which can be parsed using ini4j.

Upvotes: 1

Related Questions