public function read() {
		if (!$this->exists()) {
			throw new FileException(sprintf('File does not exist: %s', $this->getFilename()));
		}

		if (!$this->isReadable()) {
			throw new FileException(sprintf('You don\'t have permissions to access %s file', $this->getFilename()));
		}

		return file_get_contents($this->pathname);
	}
public function read() {
		if (!$this->exists()) {
			throw new FileException(sprintf('File does not exist: %s', $this->getFilename()));
		}

		if (!$this->isReadable()) {
			throw new FileException(sprintf('You don\'t have permissions to access %s file', $this->getFilename()));
		}

		return file_get_contents($this->pathname);
	}
public function read ( ) { if ( ! $ this -> exists ( ) ) { throw new FileException ( sprintf ( 'File does not exist: %s' , $ this -> getFilename ( ) ) ) ; } if ( ! $ this -> isReadable ( ) ) { throw new FileException ( sprintf ( 'You don\'t have permissions to access %s file' , $ this -> getFilename ( ) ) ) ; } return file_get_contents ( $ this -> pathname ) ; }
Reads contents from the file

@throws FileException
@return string contents
Reads contents from the file