Meta
Categories
Tag Archives: properties
Java Property files
Load Properties From File props = new Properties(); String myFile = "myFile"; props.load(new BufferedInputStream(new FileInputStream(myFile))); final static String propFile = "my.properties"; private static void loadPropertiesFromFile() throws RuntimeException { prop = new Properties(); try { prop.load(new BufferedInputStream( new FileInputStream(propFile))); } … Continue reading