Using the fseek() Function : fseek « File Directory « PHP






Using the fseek() Function

 
<?php
     $fr = fopen('data.dat', 'r');
     if(!$fr) exit;

     fseek($fr, 10);

     fseek($fr, -10, SEEK_END);

     fseek($fr, 2, SEEK_CUR);
?>
  
  








Related examples in the same category

1.Constant Reference Points for fseek()
2.Moving Around a File with fseek()