public function openFile($mode = 'r')
    {
        if (!$this->handle) {
            $this->handle = fopen($this->file, $mode);
            if ($this->handle === false) {
                throw new Exception(['Can not open CSV file.', 'file' => $this->file, 'mode' => $mode]);
            }
        }
    }