Class for writing to comma-separated-value (CSV) files. More...
Public Member Functions | |
CsvFileWriter (Stream stream) | |
Initializes a new instance of the CsvFileWriter class for the specified stream. More... | |
CsvFileWriter (string path) | |
Initializes a new instance of the CsvFileWriter class for the specified file path. More... | |
void | WriteRow (List< string > columns) |
Writes a row of columns to the current CSV file. More... | |
void | Dispose () |
Additional Inherited Members | |
Public Types inherited from SpringCard.LibCs.CsvFileCommon | |
enum | EmptyLineBehavior { EmptyLineBehavior.NoColumns, EmptyLineBehavior.EmptyColumn, EmptyLineBehavior.Ignore, EmptyLineBehavior.EndOfFile } |
Determines how empty lines are interpreted when reading CSV files. These values do not affect empty lines that occur within quoted fields or empty lines that appear at the end of the input file. More... | |
Protected Attributes inherited from SpringCard.LibCs.CsvFileCommon | |
char [] | SpecialChars = new char[] { ';', ',', '"', '\r', '\n' } |
These are special characters in CSV files. More... | |
Properties inherited from SpringCard.LibCs.CsvFileCommon | |
char | Delimiter [get, set] |
Gets/sets the character used for column delimiters. | |
char | Quote [get, set] |
Gets/sets the character used for column quotes. | |
Class for writing to comma-separated-value (CSV) files.
SpringCard.LibCs.CsvFileWriter.CsvFileWriter | ( | Stream | stream | ) |
Initializes a new instance of the CsvFileWriter class for the specified stream.
stream | The stream to write to |
SpringCard.LibCs.CsvFileWriter.CsvFileWriter | ( | string | path | ) |
Initializes a new instance of the CsvFileWriter class for the specified file path.
path | The name of the CSV file to write to |
void SpringCard.LibCs.CsvFileWriter.WriteRow | ( | List< string > | columns | ) |
Writes a row of columns to the current CSV file.
columns | The list of columns to write |