RE: [PHP] read file from specific line

From: Date: Thu, 27 Jan 2005 14:36:27 +0000
Subject: RE: [PHP] read file from specific line
Groups: php.general 
Request: Send a blank email to php-general+get-207484@lists.php.net to get a copy of this message
[snip] Is there any way reading a file from a specific line? (textfile) [/snip] Yes. Loop through a count until you reach the line you want, then read.... while(!feof($myFile)){ if("lineNumberIWant" >= $i){ read line $i++; } else { do not read line $i++; } }

« previous php.general (#207484) next »