File::readLine()

File::readLine() – reads a single line from a file

Synopsis

require_once 'File.php';

mixed File::readLine ( string $filename , mixed $lock = false )

Description

Parameter

Return value

Throws

Note

This function can be called statically.

See

Example

Using File::readLine()

<?php
require_once 'File.php';

$e File::readLine('test.txt');

if (
PEAR::isError($e)) {
    echo 
'Could not read from file : ' $e->getMessage();
} else {
    echo 
$e;
}
?>
File::readChar() (Previous) File::rewind() (Next)
Last updated: Tue, 02 Jun 2009 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.