Header menu

_________________________________________________________________________________

Wednesday, 21 August 2013

How to read a file character by character in php ?

<?php

$file=fopen("filename.txt","r") or exit("Unable to open file!");
while (!feof($file))
  {
  echo fgetc($file);
  }
fclose($file);

?>

No comments:

Post a Comment