Takes two parameters, FilePath, bUseHeader


FileName, bHasHeader
FileName, ["y"]


Saves the current WorkQuery as a CSV file at the provided path. The optional second parameter defaults to true if not specified, but if set to false will output the data without a header row listing the field names.

Conversion of HTML text escape values are applied to the output, as well as ApplyLang$, and finally conversion from UTF-8 to ANSI. If these conversions are not desired, use a combination of CsvStream$ and SaveFile instead to output unescaped UTF-8.

This command always outputs whitespace wrapped in double quotes. Unlike the LoadCsvFile vs. LoadCsvFileWS, there is no WS specific version of this command because the performance impact of always considering it is not meaningful.


SaveCsvFile "Private/MyFile.csv"