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);
?>

  

原文地址:https://www.cnblogs.com/minotmin/p/3510456.html