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

x/xdg/vendor/types/deno.d.ts>Deno.File

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
class Deno.File
import { Deno } from "https://deno.land/x/xdg@v10.5.1/vendor/types/deno.d.ts";
const { File } = Deno;

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
write(p: Uint8Array): Promise<number>
writeSync(p: Uint8Array): number