public void loadSettings ( String file ) throws IOException { Path path = Paths . get ( file ) ; try ( BufferedReader reader = Files . newBufferedReader ( path , StandardCharsets . UTF_8 ) ) { Properties props = new Properties ( ) ; props . load ( reader ) ; loadSettings ( props ) ; } }
Loads constant settings from a file in Properties format .