$content = file_get_contents('./test.txt');//"./test.txt"表示么意思?
<?php
$filename = '/data/webroot/usercode/resource/test.txt';
//编写代码读取$filename的文件内容
$content = file_get_contents('./test.txt');//"./test.txt"表示么意思?
echo 'this is a test file.';
$fp = fopen('./text.txt', 'rb');
while(!feof($fp))//"!feof()"表示么意思?
{
echo fgets($fp); //读取一行
}
fclose($fp);