FileInputStream fis=new FileInputStream("connection.prop"); Properties p=new Properties (); p.load (fis);