code: public static function readFromFile($file) {
          $real_file = File::asFile($file);
  
          if ($real_file->exists())
              return self::readFromString($file->getContent());
          else
              return array();
      }
docs: Reads the properties from a file, in xml java properties format.
  
  @param mixed $file a path or a File
  
  @return array The properties array
  
  @api