baml.csv.create
Creates or truncates the file at `path` and stream-writes to it.
Reference version
Signature
function baml.csv.create(
path: string,
options: baml.csv.WriterOptions | null = …
Creates or truncates the file at path and stream-writes to it.
Parent directories are created as needed, as baml.fs.write does. The
writer owns the resulting handle, so close() closes the file.
Throws
Error { kind: Options }ifoptionsis invalid.baml.errors.Ioifpathcannot be opened for writing.
Source:<builtin>/baml/ns_csv/csv.bamlbytes 38635–38930