src/GameOfLife/Utils/FileSystem/FileSystemWriter.php
/**
     * Deletes a file.
     *
     * @param string $_filePath The path to the file that will be deleted
     *
     * @throws \Exception The exception when the target file does not exist
     */
Deletes a file.
@param string $_filePath The path to the file that will be deleted

@throws \Exception The exception when the target file does not exist
Deletes a file . @param string $_filePath The path to the file that will be deleted @throws \ Exception The exception when the target file does not exist
public function deleteFile(string $_filePath)
    {
        $filePath = $this->convertSlashes($_filePath);
        if (file_exists($filePath)) unlink($filePath);
        else throw new \Exception("The file \"" . $filePath . "\" does not exist.");
        if (file_exists($filePath))
        {
            throw new \Exception("Unknown error while deleting the file \"" . $filePath . "\".");
        }
    }
public function deleteFile ( string $ _filePath ) { $ filePath = $ this -> convertSlashes ( $ _filePath ) ; if ( file_exists ( $ filePath ) ) unlink ( $ filePath ) ; else throw new \ Exception ( " The file  \" " . $ filePath . " \"  does not exist. " ) ; if ( file_exists ( $ filePath ) ) { throw new \ Exception ( " Unknown error while deleting the file  \" " . $ filePath . " \" . " ) ; } }
Deletes a file.
Deletes a file .