Close a file after reading : File Close : File Directory PHP Source Code


PHP Source Code » File Directory » File Close »

 

Close a file after reading




<?php
   $fh = fopen("./demoCSV.csv""rt");
   while (!feof($fh)) 
      echo fgets($fh);
   fclose($fh);
?>
<!--
A,a@example.com,11111
B,b@example.com,22222


-->
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo File Directory
» File Close