11-16-2009, 03:20 PM
|
#3 (permalink)
|
|
The Addict
Join Date: Aug 2008
Posts: 336
Thanks: 8
|
why not use the file or file_get_contents functions.
php Code:
<?php$file = file("info_gen.txt"); $output = ''; foreach ($file as $line_num => $line) { //do something to the line $output = "#<b>{$line_num}</b> : "$line. "<br />\n"; }//then echo the outputecho output; ?>
I haven't tested this code, but I think those functions would be better to use.
|
|
|
|