1 of 2

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