baml.fs.write

Writes `content` to the file at `path`, creating or truncating it. Returns the number of bytes written.

Reference version

Signature

function baml.fs.write(path: string, content: string) -> int throws baml.errors.Io

Writes content to the file at path, creating or truncating it. Returns the number of bytes written.

Source:<builtin>/baml/ns_fs/fs.bamlbytes 4870–4970