code: public static Properties fromFile(
      final File file)
      throws IOException
    {
      Objects.requireNonNull(file, "File");
  
      try (InputStream stream = Files.newInputStream(file.toPath())) {
        final Properties p = new Properties();
        p.load(stream);
        return p;
      }
    }
docs: Load properties from the given file.
  
  @param file The file.
  
  @return The loaded properties.
  
  @throws IOException On I/O errors.