src/fkooman/IO/IO.php
public function readFile($filePath)
    {
        if (false === $fileContent = @file_get_contents($filePath)) {
            throw new RuntimeException(
                sprintf('unable to read file "%s"', $filePath)
            );
        }

        return $fileContent;
    }
public function readFile($filePath)
    {
        if (false === $fileContent = @file_get_contents($filePath)) {
            throw new RuntimeException(
                sprintf('unable to read file "%s"', $filePath)
            );
        }

        return $fileContent;
    }
public function readFile ( $ filePath ) { if ( false === $ fileContent = @ file_get_contents ( $ filePath ) ) { throw new RuntimeException ( sprintf ( 'unable to read file "%s"' , $ filePath ) ) ; } return $ fileContent ; }
Read a file from the file system.

@param string $filePath the path of the file to read

@return string the file contents

@throws RuntimeException if the file could not be read
Read a file from the file system .