src/DataStore/src/DataStore/CsvBase.php
protected function openFile($seekFirstDataRow = true)
    {
        $this->lockFile();

        try {
            $this->fileHandler = fopen($this->filename, 'r');
            if ($seekFirstDataRow) {
                fgets($this->fileHandler);
            }
        } catch (\Exception $e) {
            throw new DataStoreException(
                "Failed to open file. The specified file does not exist or one is closed for reading."
            );
        } finally {
            $this->lockHandler->release();
        }
    }
protected function openFile($seekFirstDataRow = true)
    {
        $this->lockFile();

        try {
            $this->fileHandler = fopen($this->filename, 'r');
            if ($seekFirstDataRow) {
                fgets($this->fileHandler);
            }
        } catch (\Exception $e) {
            throw new DataStoreException(
                "Failed to open file. The specified file does not exist or one is closed for reading."
            );
        } finally {
            $this->lockHandler->release();
        }
    }
protected function openFile ( $ seekFirstDataRow = true ) { $ this -> lockFile ( ) ; try { $ this -> fileHandler = fopen ( $ this -> filename , 'r' ) ; if ( $ seekFirstDataRow ) { fgets ( $ this -> fileHandler ) ; } } catch ( \ Exception $ e ) { throw new DataStoreException ( "Failed to open file. The specified file does not exist or one is closed for reading." ) ; } finally { $ this -> lockHandler -> release ( ) ; } }
Opens file for reading.

@param bool $seekFirstDataRow - the first row in csv-file contains the column headings; this parameter says,
if it is need to pass it (row) after the opening the file.
@throws \rollun\datastore\DataStore\DataStoreException
Opens file for reading .