Skip to main content
Notice removed Needs detailed answers by Jamal
Added detail
Source Link
200_success
  • 145.7k
  • 22
  • 191
  • 481

Here is a far and away superior solution: use java.util.Properties to handle your propertiesconfiguration file. Properties supports a key=value syntax that is very similar to the one you are trying to parse. It's up to you to decide whether that syntax is close enough to handle any existing configuration files you might have, and whether the validation and logging in your current code are essential.

Here is a far and away superior solution: use java.util.Properties to handle your properties file.

Here is a far and away superior solution: use java.util.Properties to handle your configuration file. Properties supports a key=value syntax that is very similar to the one you are trying to parse. It's up to you to decide whether that syntax is close enough to handle any existing configuration files you might have, and whether the validation and logging in your current code are essential.

Notice added Needs detailed answers by Jamal
Source Link
AJMansfield
  • 1.5k
  • 8
  • 12

Here is a far and away superior solution: use java.util.Properties to handle your properties file.