Hi David,
@ 7:21:15 PM on 4/16/2001, David Serrano wrote:
> Can you open a simple text file and store each line of that file in it's own
> part of an array?
<?php
if(! $array = @file('/usr/local/src/fdiff.c'))
die("can't read diff.c");
while(list($i,$line) = each($array))
{
print "$i: $line\n";
}
?>
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]