Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String filename = "config.txt";
- input = App3.class.getClassLoader().getResourceAsStream(filename);
- if(input==null){
- System.out.println("Sorry, unable to find " + filename);
- return;
- }
- //load a properties file from class path, inside static method
- prop.load(input);
Add Comment
Please, Sign In to add comment