Although that works... I've never really liked file-handlers myself, just cause of the extra work.
I then found out that PHP had a nice little function called readfile(). If all you want to do is output a file directly to the browser, it's all you need!
http://ca.php.net/readfile
All you do is give it a file path and it prints it.
<?php
@readfile('/path/to/file.txt');
?>
The @ is just to force it not to print any error messages in case the file doesn't exist or something...
-Percy