File read by char : File Read : File Directory PHP Source Code


PHP Source Code » File Directory » File Read »

 

File read by char




<html>
<head>
<title>Moving around a file with fseek()</title>
</head>
<body>
<?php
$filename = "test.txt";

$fp = fopen$filename, "r" or die("Couldn't open $filename");
while ! feof$fp ) ){
   $char = fgetc$fp );
   print "$char<BR>";
}
?>
</body>
</html>


           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo File Directory
» File Read