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:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 3:59 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to