<!DOCTYPE html>
<html>
<body>
<?php
$myfile = fopen("../demo/php/webdictionary.txt", "r") or die("无法打开文件!");
// 输出一个字符直到文件结束
while(!feof($myfile)) {
echo fgetc($myfile);
}
fclose($myfile);
?>
</body>
</html>