src/ImportAbstract.php
public function fromFile($fromfile)
    {
        if (!file_exists($fromfile)) {
            throw new Exception("Fichier d'import non trouvé: $fromfile", self::IMPORT_FILENOTFOUND);
        }
        
        $this->fromfile = $fromfile;
        
        $resource = fopen($fromfile, "r");
        if ($resource === false) {
            throw new Exception("Erreur de lecture de $fromfile", self::IMPORT_READ_ERROR);
        }
        
        $this->setResource($resource);
        
        return $this;
    }
public function fromFile($fromfile)
    {
        if (!file_exists($fromfile)) {
            throw new Exception("Fichier d'import non trouvé: $fromfile", self::IMPORT_FILENOTFOUND);
        }
        
        $this->fromfile = $fromfile;
        
        $resource = fopen($fromfile, "r");
        if ($resource === false) {
            throw new Exception("Erreur de lecture de $fromfile", self::IMPORT_READ_ERROR);
        }
        
        $this->setResource($resource);
        
        return $this;
    }
Lecture d'un fichier

@param $localFilename

@return $this
@throws Exception