file reading and array's

From: Date: Tue, 12 Feb 2002 02:21:40 +0000
Subject: file reading and array's
Groups: php.general 
Request: Send a blank email to php-general+get-84340@lists.php.net to get a copy of this message
Hi gang: In my constant effort to improve my perl conversion project, I have a question regarding file reading. I am taking two files and combining them in an array and then writing out a new file. Is there a way to: a)strip out the first line of the second file b)test for conditions based on what is on the next line on the file An example, I start the array on file one, then mid-way I start another array on the second file (this array within in the first). I need to check the next line in the file for a condition to exist. I have tried this, but run into the pointer resetting on each pass. Any thoughts would be appreciated. Thanks in advance. -Scott

« previous php.general (#84340) next »