Timtower

Untitled

Feb 26th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public void test(){
  2.         try{
  3.         File file = new File( file to your path... );
  4.         Reader fileReader = new FileReader(file);
  5.        
  6.         Properties prop = new Properties();
  7.         prop.load(fileReader);
  8.        
  9.         fileReader.close();
  10.        
  11.         String property = prop.getProperty("username");
  12.         }catch(Exception e){
  13.             e.printStackTrace();
  14.         }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment