Click or drag to resize
CsvWriter Class
A stream based writer for writing delimited text data to a file or a stream.
Inheritance Hierarchy

Namespace: DataStreams.Csv
Assembly: DataStreams (in DataStreams.dll) Version: 5.20.0.0
Syntax
public sealed class CsvWriter : WriterBase

The CsvWriter type exposes the following members.

Constructors
  NameDescription
Public methodCsvWriter(String)
Creates a CsvWriter object using a file to write data to. Uses a comma as the delimiter and Encoding.Default as the encoding.
Public methodCsvWriter(TextWriter, Char)
Creates a CsvWriter object using a TextWriter to write data to.
Public methodCsvWriter(Stream, Char, Encoding)
Creates a CsvWriter object using a Stream to write data to.
Public methodCsvWriter(String, Char, Encoding)
Creates a CsvWriter object using a file to write data to.
Top
Methods
  NameDescription
Public methodClose
Closes and releases all related resources.
(Inherited from WriterBase.)
Public methodEndRecord
Ends the current record by sending the record delimiter.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFlush
Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
(Inherited from WriterBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite(String)
Writes another column of data to this record. Does not preserve leading and trailing whitespace in this column of data.
Public methodWrite(String, Boolean)
Writes another column of data to this record.
Public methodWriteAll(DataTable)
Writes all data from the DataTable. Writes the column name headers as the first record in the output data.
Public methodWriteAll(DataTable, Boolean)
Writes all data from the DataTable.
Public methodWriteComment
Writes comment text out to the file using the Comment character.
Public methodWriteRecord(String)
Writes a new record using the passed in array of values.
Public methodWriteRecord(String, Boolean)
Writes a new record using the passed in array of values.
Top
Properties
  NameDescription
Public propertySettings
Has all the options that are able to be set that will affect the way records are written.
Top
See Also