Method GetLines
GetLines(Stream, Encoding)
Accesses a resource by name and returns the (non comment) lines containing data using the given character encoding.
A comment line is any line that starts with the character "#"
Declaration
public static IList<string> GetLines(Stream stream, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | |
System.Text.Encoding | encoding |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> | a list of non-blank non-comment lines with whitespace trimmed |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | If there is a low-level I/O error. |