public function readLines()
    {
        if ($this->getFileObject()->isFile()) {
            if ($this->skipEmptyLines) {
                // skip empty lines
                $lines = file($this->getFileObject()->getPathname(), FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES);
            } else {
                $lines = file($this->getFileObject()->getPathname(), FILE_IGNORE_NEW_LINES);
            }

            if (is_array($lines)) {
                return $lines;
            }
        }
        return array();
    }
public function readLines()
    {
        if ($this->getFileObject()->isFile()) {
            if ($this->skipEmptyLines) {
                // skip empty lines
                $lines = file($this->getFileObject()->getPathname(), FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES);
            } else {
                $lines = file($this->getFileObject()->getPathname(), FILE_IGNORE_NEW_LINES);
            }

            if (is_array($lines)) {
                return $lines;
            }
        }
        return array();
    }
public function readLines ( ) { if ( $ this -> getFileObject ( ) -> isFile ( ) ) { if ( $ this -> skipEmptyLines ) { // skip empty lines $ lines = file ( $ this -> getFileObject ( ) -> getPathname ( ) , FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES ) ; } else { $ lines = file ( $ this -> getFileObject ( ) -> getPathname ( ) , FILE_IGNORE_NEW_LINES ) ; } if ( is_array ( $ lines ) ) { return $ lines ; } } return array ( ) ; }
return an array with all lines of a file

@return      array          file lines
return an array with all lines of a file