import java.util.Properties; import java.io.FileInputStream; import java.io.IOException; import java.io.Reader; import java.io.BufferedReader; import java.io.InputStreamReader; class Program06 { public static void main(String args[]) { Properties pro = new Properties(); try { FileInputStream f = new FileInputStream("config.properties"); InputStreamReader i = new InputStreamReader(f, "UTF-8"); Reader in = new BufferedReader(i); pro.load(in); System.out.println(pro.getProperty("Első")); System.out.println(pro.getProperty("Második")); }catch(IOException e) { System.err.println("Hiba a betöltés során!"); } } }