50df2b8d e90c 0e43 3f05 0061d59630a6 - akesseler/Plexdata.CsvParser GitHub Wiki
This method tries to read all values from given stream using given settings.
Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea
C#
public static CsvContainer Read(
Stream stream,
CsvSettings settings
)
- stream
- Type: System.IO.Stream
The stream to read data from. - settings
- Type: Plexdata.CsvParser.Processors.CsvSettings
The settings to be used to process file data.
Type: CsvContainer
An instance of class CsvContainer that contains all processed CSV data items.
Exception | Condition |
---|---|
ArgumentNullException | This exception is thrown in case of given stream is invalid. |
ArgumentException | This exception is thrown in case of given stream does not have read access. |
The settings parameter describes how the data within given file should be processed. For example, users may define the expected culture, the expected file encoding, which separator is used and so on.
CsvReader Class
Read Overload
Plexdata.CsvParser.Processors Namespace