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() |
get_error() const |
|
open(file_path: String, delimiter: String = ",", append: bool = false) |
|
write_rows(rows: Array) |
Method Descriptions๏
void close() ๐
Closes the current output file.
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.