Mega Code Archive

 
Categories / Php / File Directory
 

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;   ?>