Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/files.ts>File

A modern runtime for JavaScript and TypeScript.
Go to Latest
import { File } from "https://deno.land/x/deno@v0.28.0/cli/js/files.ts";

The Deno abstraction for reading and writing files.

Constructors

new
File(rid: number)

Methods

close(): void
read(p: Uint8Array): Promise<number | EOF>
readSync(p: Uint8Array): number | EOF
seek(offset: number, whence: SeekMode): Promise<void>
seekSync(offset: number, whence: SeekMode): void
write(p: Uint8Array): Promise<number>
writeSync(p: Uint8Array): number