code: public static function addEntriesToFile($file, $entries) {
          $properties = self::readFromFile($file);
          foreach ($entries as $key => $value) {
              $properties[$key] = $value;
          }
  
          self::saveToFile($file, $properties);
      }
docs: Adds entries to a java xml properties file.
  
  @param mixed $file a path or a File
  @param array $entries
  
  @api