Read from an open file in PHP

Description

The following code shows how to read from an open file.

Example


  /*  ww  w . j  a v  a2 s. co m*/
<?php
    $file = fopen("test.txt","r");
    fread($file,"10");
    fclose($file);
?>




















Home »
  PHP Tutorial »
    File »




Directory
DirectoryIterator
Drive
File
File Permission
File Read Save
FileSystemIterator
Path
Zip