复制代码 代码如下:$path1= “E:/myphp/text.txt”;if(!file_exists($path1)){ echo “文件不存在!”;}else{ $handle1 = fopen($path1, ‘r+’) or exit(“Unable to open file”);// while (!feof($handle1)){// echo fgets($handle1).””;// } while(!feof($handle1)){ echo fgetc($handle1); }}上面的代码阐释了一个简单的文件读取操作。说明下