/**
* PHP 中用fread读取文件的代码
*
* @param
* @arrange 512-笔记网: 512Pic.com
**/
<?PHP
$fh = fopen("testfile.txt",'r') or
die("File does not exist or you lack permission to open it");
$text = fread($fh,3);
fclose($fh);
echo $text;
?>
/*** 来自编程之家 jb51.cc(jb51.cc) ***/