5d15df7e 11f2 85e5 6b64 749bea74e583 - akesseler/Plexdata.CsvParser GitHub Wiki

CsvReader.ReadLines Method

Reads all lines from input stream.

Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea

Syntax

C#

private static List<string> ReadLines(
	Stream stream,
	Encoding encoding
)

Parameters

 

stream
Type: System.IO.Stream
The input stream to read all lines from.
encoding
Type: System.Text.Encoding
The file encoding to be used.

Return Value

Type: List(String)
All lines read from input stream.

Remarks

This method provides a more RFC-compliant way to read the lines of a CSV file. This particularly applies to the processing of strings and the line breaks they contain. Please not that any kind of line break, such as CR="\r", LF="\n" or CRLF="\r\n", is replace by the platform-specific line break. This actually contradicts the RFC, which requires CRLF as line break.

See Also

Reference

CsvReader Class
Plexdata.CsvParser.Processors Namespace

⚠️ **GitHub.com Fallback** ⚠️