class Deno.File

The Deno abstraction for reading and writing files.

Constructors

new
File(rid: number)

Properties

readonly
rid: number

Methods

close(): void
read(p: Uint8Array): Promise<number | null>
readSync(p: Uint8Array): number | null
seek(offset: number, whence: SeekMode): Promise<number>
seekSync(offset: number, whence: SeekMode): number
stat(): Promise<FileInfo>
truncate(len?: number): Promise<void>
truncateSync(len?: number): void
write(p: Uint8Array): Promise<number>
writeSync(p: Uint8Array): number