Skip to main content
Module

std/fs/mod.ts>readFileStr

Deno standard library
Go to Latest
function readFileStr
import { readFileStr } from "https://deno.land/std@0.52.0/fs/mod.ts";

Read file and output it as a string.

Parameters

filename: string

File to read

optional
opts: ReadOptions = [UNSUPPORTED]

Read options

Returns

Promise<string>