mixed File::readCharChar (
string $filename
,
mixed $lock
= = false
)
This function can be called statically.
Exemple avec File::readChar()
<?php
require_once 'File.php';
$e = File::readChar('test.txt');
if (PEAR::isError($e)) {
echo 'Impossible de lire le caractère depuis le fichier : ' . $e->getMessage();
} else {
echo $e;
}
?>