Reading specific contents of a file

From: Date: Mon, 02 Apr 2001 11:38:16 +0000
Subject: Reading specific contents of a file
Groups: php.general 
Request: Send a blank email to php-general+get-46593@lists.php.net to get a copy of this message
using fopen() i can open a file & using fread() i can read it's contents, store them & print them. But is there any way of checking the contents for a specific word or characters? For example i want the file pointer to search & if found, print the word "enter" from the open file. how to do this? T. Edison jr. ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : abraxastech@yahoo.com Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text

« previous php.general (#46593) next »