code: public static Properties readPropertiesFromFile(File file)
        throws IOException {
      try (FileInputStream fis = new FileInputStream(file)) {
        Properties prop = new Properties();
        prop.load(fis);
        return prop;
      }
    }
docs: Reads the Properties from a file that was created by the
  {@link #writePropertiesToFile(Properties, File) writePropertiesToFile}
  method.
  
  @param file file to read the Properties object from.
  @return the Properties object in the file
  @throws IOException if an I/O error occurs.