Java tutorial
import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; public class Main { public static void main(String[] args) throws IOException { Properties properties = new Properties(); try (InputStream input = new FileInputStream("test.properties")) { properties.load(input); } for (String key : properties.stringPropertyNames()) { System.out.println(key + " = '" + properties.get(key) + "'"); } } }