yup - thats it ...
i.e. readfile($file) in PHP outputs the contents of file directly to screen & there is no normal way of manipulating its contents but you can use ob_start() & friends
PHP Code:
<?
ob_start();
//can't normally get at the files contents (using readfile())
readfile('yaks.txt');
//so grab the contents of the buffer//
$str = ob_get_contents();
//do something pointless to $str... because we can//
$str=nl2br(strrev($str));
ob_end_clean();
echo $str;
?>