note 72263 added to function.fseek

From: Date: Wed, 10 Jan 2007 01:25:16 +0000
Subject: note 72263 added to function.fseek
Groups: php.notes 
Request: Send a blank email to php-notes+get-121516@lists.php.net to get a copy of this message
I'd like to know if it's possible, using fseek or some other function; to set the file position indicator based on specific text? I have a text file that has a varying header size. However, the data I want to start reading does not begin until the line below the string "CLIENTS:" (without quotes). Is there a way to move the file position indicator to that line below CLIENTS: Thanks! ---- Server IP: 216.194.113.175 Probable Submitter: 68.98.159.226 ---- Manual Page -- http://www.php.net/manual/en/function.fseek.php Edit -- https://master.php.net/note/edit/72263 Del: integrated -- https://master.php.net/note/delete/72263/integrated Del: useless -- https://master.php.net/note/delete/72263/useless Del: bad code -- https://master.php.net/note/delete/72263/bad+code Del: spam -- https://master.php.net/note/delete/72263/spam Del: non-english -- https://master.php.net/note/delete/72263/non-english Del: in docs -- https://master.php.net/note/delete/72263/in+docs Del: other reasons-- https://master.php.net/note/delete/72263 Reject -- https://master.php.net/note/reject/72263 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121516) next »