View Single Post
Old 11-16-2009, 03:20 PM   #3 (permalink)
tony
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

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 output
echo output;
?>

I haven't tested this code, but I think those functions would be better to use.
tony is offline  
Reply With Quote