SpringCard LibCs for .NET  18.10.10
A set of utilities to simplify the development of .NET application
SpringCard.LibCs.CsvFileWriter Class Reference

Class for writing to comma-separated-value (CSV) files. More...

Inheritance diagram for SpringCard.LibCs.CsvFileWriter:
SpringCard.LibCs.CsvFileCommon

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.
 

Detailed Description

Class for writing to comma-separated-value (CSV) files.

Constructor & Destructor Documentation

◆ CsvFileWriter() [1/2]

SpringCard.LibCs.CsvFileWriter.CsvFileWriter ( Stream  stream)

Initializes a new instance of the CsvFileWriter class for the specified stream.

Parameters
streamThe stream to write to

◆ CsvFileWriter() [2/2]

SpringCard.LibCs.CsvFileWriter.CsvFileWriter ( string  path)

Initializes a new instance of the CsvFileWriter class for the specified file path.

Parameters
pathThe name of the CSV file to write to

Member Function Documentation

◆ WriteRow()

void SpringCard.LibCs.CsvFileWriter.WriteRow ( List< string >  columns)

Writes a row of columns to the current CSV file.

Parameters
columnsThe list of columns to write

The documentation for this class was generated from the following file: