5d15df7e 11f2 85e5 6b64 749bea74e583 - akesseler/Plexdata.CsvParser GitHub Wiki
Reads all lines from input stream.
Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea
C#
private static List<string> ReadLines(
Stream stream,
Encoding encoding
)
- stream
- Type: System.IO.Stream
The input stream to read all lines from. - encoding
- Type: System.Text.Encoding
The file encoding to be used.
Type: List(String)
All lines read from input stream.
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.