Reading a Specific Character : File Read « File Directory « PHP





Reading a Specific Character


  <?php

  $myfile = "./test.txt";
  $openfile = fopen ($myfile, "r") or die ("Couldn *** open the file");

  fseek ($openfile, 8);
  $chunk = fgetc ($openfile);
  echo $chunk;

  ?>
           
       










Related examples in the same category

1.Using fgets() and feof() Functions
2.Reading Specific Data from a File
3.Reading from a File
4.Opening and Reading a File Line by Line
5.Reading a File with fread()
6.File read by char