PHP逐字符读取数据
<?php
$file = fopen("Minot.txt", "r") or exit("Unable to open file!");
//Output a line of the file until the end is reached
//feof() check if file read end EOF
while(!feof($file))
{
//fgets() Read row by row
echo fgetc($file). "<br />";
}
fclose($file);
?>
转载请注明文章来自:程序猴(http://www.chengxuhou.com/)
posted on 2014-01-08 12:54 程序猴chengxuhou.com 阅读(311) 评论(0) 收藏 举报
浙公网安备 33010602011771号