src/datasource/File.php
public function read($filename, $pathToFile = null)
    {
        if(!$this->fileExists($filename, $pathToFile))
            throw new \Exception("File, '{$filename}', does not exist.");

        if ($pathToFile==null) {
            return file_get_contents($this->_filePath."/".$filename);
        } else {
            return file_get_contents($pathToFile."/".$filename);
        }
    }
public function read($filename, $pathToFile = null)
    {
        if(!$this->fileExists($filename, $pathToFile))
            throw new \Exception("File, '{$filename}', does not exist.");

        if ($pathToFile==null) {
            return file_get_contents($this->_filePath."/".$filename);
        } else {
            return file_get_contents($pathToFile."/".$filename);
        }
    }
public function read ( $ filename , $ pathToFile = null ) { if ( ! $ this -> fileExists ( $ filename , $ pathToFile ) ) throw new \ Exception ( "File, '{$filename}', does not exist." ) ; if ( $ pathToFile == null ) { return file_get_contents ( $ this -> _filePath . "/" . $ filename ) ; } else { return file_get_contents ( $ pathToFile . "/" . $ filename ) ; } }
Read string to file

@param string $filename
@param string $pathToFile
@return string
Read string to file