code: public static Properties getFileAsProperties(File file) {
          checkFileExists(file);
          Properties properties = new Properties();
          try (InputStream stream = new FileInputStream(file)) {
              properties.load(stream);
          } catch (IOException e) {
              throw new IllegalArgumentException(e);
          }
          return properties;
      }
docs: Loads properties from file
  @param file the properties file
  @return the loaded properties
  
  @since 1.0.4