public function readFile(string $file_name)
    {
        $contents = @file_get_contents($file_name);
        if ($contents === false)
            throw new IOException("Failed to read file contents");

        $contents = Encoding::removeBOM($contents);
        return $this->readString(file_get_contents($file_name));
    }
public function readFile(string $file_name)
    {
        $contents = @file_get_contents($file_name);
        if ($contents === false)
            throw new IOException("Failed to read file contents");

        $contents = Encoding::removeBOM($contents);
        return $this->readString(file_get_contents($file_name));
    }
public function readFile ( string $ file_name ) { $ contents = @ file_get_contents ( $ file_name ) ; if ( $ contents === false ) throw new IOException ( "Failed to read file contents" ) ; $ contents = Encoding :: removeBOM ( $ contents ) ; return $ this -> readString ( file_get_contents ( $ file_name ) ) ; }
Read data from a file
@param string $file_name The file to read
@return array The read data
@throws Wedeto\IO\IOException On read errors
Read data from a file