Re[2]: [PHP] Parsing Text File From: Stuart Dallas (stuart <email protected>)
Date: 06/15/02

On Saturday, June 15, 2002 at 9:05:40 PM, Nathan Taylor wrote:
> <?php

> $open = fopen("file.txt","r+");

> while($contents = fgets($open)) {
> $line_array[$x] = $contents;
> $x++;
> }

?>>

This wheel exists: http://www.php.net/file

<?php
     $line_array = file('file.txt');
?>

-- 
Stuart

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php