<?
function rw_counterfile()
{
$fp=fopen("counter.txt","r+");
if($fp==NULL) echo "文件處理出錯";
rewind($fp);//指針移到文件頭
fseek($fp, 2);//指針向後移2
$point=ftell($fp);//
echo $point."
;";//
fputs($fp, xyxy, 2);//寫入2個字符
rewind($fp);//
$num=fgets($fp,23);//讀出字符串
echo "get:".$num."
;";//
fclose($fp);
}
rw_counterfile();
?>;