write_csv#
- ansys.aedt.core.generic.file_utils.write_csv(output_file: str, list_data: list, delimiter: str = ',', quote_char: str = '|', quoting: int = 0) bool#
Write data to a CSV .
- Parameters:
- output_file
str Full path and name of the file to write the data to.
- list_data
list Data to be written to the specified output file.
- delimiter
str Delimiter. The default value is
"|".- quote_char
str Quote character. The default value is
"|"- quoting
int Quoting character. The default value is
"csv.QUOTE_MINIMAL". It can take one any of the following module constants:"csv.QUOTE_MINIMAL"means only when required, for example, when afield contains either the quote char or the delimiter
"csv.QUOTE_ALL"means that quotes are always placed around fields."csv.QUOTE_NONNUMERIC"means that quotes are always placed aroundfields which do not parse as integers or floating point numbers.
"csv.QUOTE_NONE"means that quotes are never placed around fields.
- output_file