Re: File open Question?

From: Date: Mon, 16 Apr 2001 23:26:00 +0000
Subject: Re: File open Question?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48830@lists.php.net to get a copy of this message
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.

« previous php.general (#48830) next »