Guest User

Untitled

a guest
Oct 17th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. String filename = "config.txt";
  2. input = App3.class.getClassLoader().getResourceAsStream(filename);
  3. if(input==null){
  4. System.out.println("Sorry, unable to find " + filename);
  5. return;
  6. }
  7.  
  8. //load a properties file from class path, inside static method
  9. prop.load(input);
Add Comment
Please, Sign In to add comment