使用fgets函数可读取一行。
http://www.ibm.com/developerworks/cn/opensource/os-php-readfiles/
亮点:
$file_handle = fopen("myfile", "r"); while (!feof($file_handle)) { $line = fgets($file_handle); echo $line; } fclose($file_handle); |
HxLauncher: Launch Android applications by voice commands