code: public static void loadProps(Properties props, File file) throws IOException {
          FileInputStream fis = null;
          try {
              fis = new FileInputStream(file);
              props.load(fis);
          } finally {
              if (null != fis) {
                  fis.close();
              }
          }
      }
docs: Loads in the properties file
  
  @param props Properties being loaded from the file
  @param file  File declartion that is being used
  @throws java.io.IOException IOException is thrown