You can use the
fgets()
function with combination of fopne()
funciton to read the file line by line.
Using PHP5 spl iterators, object oriented style.
$file = new SplFileObject("file.txt");
while (!$file->eof()) {
echo $file->fgets();
}
|
0 comments:
Post a Comment