import java.util.Properties; import java.io.FileInputStream; public class PropertyFile{ public static void main(String args[]){ try { Properties prop = new Properties(); prop.load(new FileInputStream("application.ini")); for (String propertyName : prop.stringPropertyNames()) { System.out.println(propertyName); System.out.println(prop.getProperty(propertyName)); } } catch (Exception e){ e.printStackTrace(); } } }