不一样,asp通过脚本对象操作。
php直接使用函数操作,跟c语言类似。
详见php手册。
file函数可直接将文件读为数组。
基本方式的例子(不适用file)
$fd = fopen ("inputfile.txt", "r");
while (!feof ($fd)) {
    $buffer = fgets($fd, 4096);
    echo $buffer;
}
fclose ($fd);