src/fs/entity/FileEntity.php
public function read(int $offset = 0)
    {
        if ($this->test(\sndsgd\Fs::EXISTS | \sndsgd\Fs::READABLE) === false) {
            $this->error = "failed to read file; {$this->error}";
            return false;
        }
        return $this->readFile($offset);
    }
public function read(int $offset = 0)
    {
        if ($this->test(\sndsgd\Fs::EXISTS | \sndsgd\Fs::READABLE) === false) {
            $this->error = "failed to read file; {$this->error}";
            return false;
        }
        return $this->readFile($offset);
    }
Read the contents of the file

@param int $offset The position to start reading from
@return bool|string
@return string The contents of the file on success
@return false If the file could not be read