文件读取 php逐个字符读取文件范例代码
php逐个字符读取文件范例代码 [代码片段(8行)]
<?php $file=fopen("welcome.txt","r") or exit("Unable to open file!"); while (!feof($file)) { echo fgetc($file); } fclose($file); ?>
- 上一篇:php 魔术方法详解
- 下一篇:CSV php写入数据到CSV文件范例代码
精彩图集
精彩文章
<?php $file=fopen("welcome.txt","r") or exit("Unable to open file!"); while (!feof($file)) { echo fgetc($file); } fclose($file); ?>
@CopyRight 2002-2008, 1SOHU.COM, Inc. All Rights Reserved QQ:1010969229