Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function writeFileStrSync
import { writeFileStrSync } from "https://deno.land/std@v0.34.0/fs/write_file_str.ts";

Write the string to file synchronously.

Parameters

filename: string

File to write

content: string

The content write to file

Returns

void

void