concrete/src/Entity/File/Version.php
public function getFileContents()
    {
        $result = null;
        $fsl = $this->getFile()->getFileStorageLocationObject();
        if ($fsl !== null) {
            $app = Application::getFacadeApplication();
            $cf = $app->make('helper/concrete/file');
            try {
                $result = $fsl->getFileSystemObject()->read($cf->prefix($this->fvPrefix, $this->fvFilename));
                if ($result === false) {
                    $result = null;
                }
            } catch (FileNotFoundException $x) {
            }
        }

        return $result;
    }
public function getFileContents()
    {
        $result = null;
        $fsl = $this->getFile()->getFileStorageLocationObject();
        if ($fsl !== null) {
            $app = Application::getFacadeApplication();
            $cf = $app->make('helper/concrete/file');
            try {
                $result = $fsl->getFileSystemObject()->read($cf->prefix($this->fvPrefix, $this->fvFilename));
                if ($result === false) {
                    $result = null;
                }
            } catch (FileNotFoundException $x) {
            }
        }

        return $result;
    }
public function getFileContents ( ) { $ result = null ; $ fsl = $ this -> getFile ( ) -> getFileStorageLocationObject ( ) ; if ( $ fsl !== null ) { $ app = Application :: getFacadeApplication ( ) ; $ cf = $ app -> make ( 'helper/concrete/file' ) ; try { $ result = $ fsl -> getFileSystemObject ( ) -> read ( $ cf -> prefix ( $ this -> fvPrefix , $ this -> fvFilename ) ) ; if ( $ result === false ) { $ result = null ; } } catch ( FileNotFoundException $ x ) { } } return $ result ; }
Get the contents of the file.

@return string|null return NULL if the actual file does not exist or can't be read
Get the contents of the file .