DSVWriter๏ƒ

Inherits: RefCounted < Object

Streaming delimiter-separated value writer.

Description๏ƒ

DSVWriter writes delimiter-separated files one row at a time without building the complete output string in memory.

Methods๏ƒ

void

close()

Error

get_error() const

Error

open(file_path: String, delimiter: String = ",", append: bool = false)

bool

write_row(row: Variant)

bool

write_rows(rows: Array)


Method Descriptions๏ƒ

void close() ๐Ÿ”—

Closes the current output file.


Error get_error() const ๐Ÿ”—

Returns the last error produced by open().


Error open(file_path: String, delimiter: String = ",", append: bool = false) ๐Ÿ”—

Opens file_path for streaming writes. If append is true, rows are appended to an existing file when possible.


bool write_row(row: Variant) ๐Ÿ”—

Writes one row. Arrays and PackedStringArray values are written as fields.


bool write_rows(rows: Array) ๐Ÿ”—

Writes each row in rows.