previousFile::readAll() (Previous) (Next) File::readLine()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File::readChar()

File::readChar() – reads a single character from a file

Synopsis

require_once 'File.php';

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

Description

Parameter

Return value

Throws

Note

This function can be called statically.

See

Example

Using File::readChar()

<?php
require_once 'File.php';

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

if (
PEAR::isError($e)) {
    echo 
'Could not read char from file : ' $e->getMessage();
} else {
    echo 
$e;
}
?>
previousFile::readAll() (Previous) (Next) File::readLine()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.