fopen ile uğraşmana gerek yokki burada.
<?php
$dizin = "D:\Apache\AppServ\www";
$dosya = "deneme.php";
$a = @file_get_contents($dizin."/".$dosya);
if ($a == "") {
echo "dosyayı açamadım";
exit();
}
echo '<center><textarea rows="30" cols="70">'.$a.'</textarea></center>';
?>