Akeneo\Component\SpreadsheetParser\Csv\RowIterator::openResource PHP Method

openResource() protected method

Opens the file resource
protected openResource ( )
    protected function openResource()
    {
        $this->fileHandle = fopen($this->path, 'r');
        $currentEncoding = $this->getCurrentEncoding();
        if (isset($this->options['encoding']) && $currentEncoding !== $this->options['encoding']) {
            stream_filter_prepend($this->fileHandle, sprintf("convert.iconv.%s/%s", $this->options['encoding'], $this->getCurrentEncoding()));
        }
    }