Reading from Properties file

To read from a properties file we use the below commands

Properties prop = new Properties();
FileInputStream fs1 = new FileInputStream(System.getProperty("user.dir")+ "\\src\\Test.properties");
prop.load(fs1);
System.out.println(prop.getProperty("name"));
Note that  data in properties file is case senstive so if if we give a key name as  NAME insted of name in the above command it will not
work.