View difference between Paste ID: DbtsWdm7 and Sygxr59X
SHOW: | | - or go back to the newest paste.
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
	}