You are here

public function vfsStreamFile::openForAppend in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamFile.php \org\bovigo\vfs\vfsStreamFile::openForAppend()

open file and set pointer to end of file

@since 0.9

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamFile.php, line 138

Class

vfsStreamFile
File container.

Namespace

org\bovigo\vfs

Code

public function openForAppend() {
  $this->content
    ->seek(0, SEEK_END);
  $this->lastAccessed = time();
}