src/GameOfLife/Utils/FileSystem/FileSystemReader.php
/**
     * Read text from file.
     *
     * @param string $_filePath The path to the file that will be read
     *
     * @return String[] The lines from the file
     *
     * @throws \Exception The exception when the target file does not exist
     */
Read text from file.
@param string $_filePath The path to the file that will be read

@return String[] The lines from the file

@throws \Exception The exception when the target file does not exist
Read text from file . @param string $_filePath The path to the file that will be read @return String [] The lines from the file @throws \ Exception The exception when the target file does not exist
public function readFile(string $_filePath): array
    {
        $filePath = $this->convertSlashes($_filePath);
        if (! file_exists($filePath)) throw new \Exception("The file \"" . $filePath . "\" does not exist.");
        else return file($filePath, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
    }
public function readFile ( string $ _filePath ) : array { $ filePath = $ this -> convertSlashes ( $ _filePath ) ; if ( ! file_exists ( $ filePath ) ) throw new \ Exception ( " The file  \" " . $ filePath . " \"  does not exist. " ) ; else return file ( $ filePath , FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES ) ; }
Read text from file.
Read text from file .