public function read($sFileName)<br />
{<br />
// Check if file exists and is readable<br />
if(!is_readable($sFileName)) {<br />
throw new Exception("Could not open " . $sFileName . " for reading! File does not exist, or it is not readable.");<br />
}<br />
<br />
// Get the file data<br />
$this->data = file_get_contents($sFileName);<br />
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn