public static function getContents($filename)
    {
        $contents = file_get_contents($filename);
        if ($contents === false) {
            throw new \RuntimeException("Cannot read the file: " . $filename);
        }

        return $contents;
    }
public static function getContents($filename)
    {
        $contents = file_get_contents($filename);
        if ($contents === false) {
            throw new \RuntimeException("Cannot read the file: " . $filename);
        }

        return $contents;
    }
public static function getContents ( $ filename ) { $ contents = file_get_contents ( $ filename ) ; if ( $ contents === false ) { throw new \ RuntimeException ( "Cannot read the file: " . $ filename ) ; } return $ contents ; }
Read the contents of a file, and throw a RuntimeException if it cannot be done.

@param string $filename The path to the file

@return string The data read from the file
Read the contents of a file and throw a RuntimeException if it cannot be done .