Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/fs/mod.ts>readFileStrSync

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function readFileStrSync
import { readFileStrSync } from "https://deno.land/std@v0.40.0/fs/mod.ts";

Read file synchronously and output it as a string.

Parameters

filename: string

File to read

optional
opts: ReadOptions = [UNSUPPORTED]

Read options

Returns

string