src/Core/Support/WordPressFileHeaders.php
public function read(string $path, int $length = 8192): string
    {
        $handle = fopen($path, 'r');
        $content = fread($handle, $length);
        fclose($handle);

        return str_replace("\r", "\n", $content);
    }
public function read(string $path, int $length = 8192): string
    {
        $handle = fopen($path, 'r');
        $content = fread($handle, $length);
        fclose($handle);

        return str_replace("\r", "\n", $content);
    }
public function read ( string $ path , int $ length = 8192 ) : string { $ handle = fopen ( $ path , 'r' ) ; $ content = fread ( $ handle , $ length ) ; fclose ( $ handle ) ; return str_replace ( "\r" , "\n" , $ content ) ; }
Get a partial content of given file.

@param string $path
@param int    $length

@return string
Get a partial content of given file .