Skip to content

Core\IO\File

An open file. Core\IO::open returns one. It reads and writes a part of the file at a time, and seek and tell move to a position and return it. close closes it, and a handle that is still open is closed when the request ends.

Returned by

You get a Core\IO\File from these methods:

Members

10 members.

MemberSignature
readread(uint $max): string
readBytesreadBytes(uint $max): bytes
readLinereadLine(): ?string
writewrite(string|bytes $data): uint
seekseek(uint $offset): void
telltell(): uint
truncatetruncate(uint $size): void
flushflush(): void
locklock(): void
closeclose(): void