RE: [PHP] Reading one line, and no more.

From: Date: Mon, 19 Mar 2001 21:06:55 +0000
Subject: RE: [PHP] Reading one line, and no more.
Groups: php.general 
Request: Send a blank email to php-general+get-44629@lists.php.net to get a copy of this message
http://www.php.net/manual/en/function.file.php Look into this, you might be able to do it using the file() function which reads in a file and populates and array line by line. array file (string filename [, int use_include_path]) Identical to readfile(), except that file() returns the file in an array. Each element of the array corresponds to a line in the file, with the newline still attached. You can use the optional second parameter and set it to "1", if you want to search for the file in the include_path, too. -----Original Message----- From: Richard [mailto:oblivion@lunamorena.net] Sent: Monday, March 19, 2001 3:59 PM To: php-general@lists.php.net Subject: [PHP] Reading one line, and no more. Greetings. How can I read one specified row in a flat textfile? I am working in arrays and so forth, therefore one row is enough. Thanks. - Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#44629) next »