Export (0) Print
Expand All

TextFieldParser Properties

The TextFieldParser type exposes the following members.

  Name Description
Public property CommentTokens Defines comment tokens. A comment token is a string that, when placed at the beginning of a line, indicates that the line is a comment and should be ignored by the parser.
Public property Delimiters Defines the delimiters for a text file.
Public property EndOfData Returns True if there are no non-blank, non-comment lines between the current cursor position and the end of the file.
Public property ErrorLine Returns the line that caused the most recent MalformedLineException exception.
Public property ErrorLineNumber Returns the number of the line that caused the most recent MalformedLineException exception.
Public property FieldWidths Denotes the width of each column in the text file being parsed.
Public property HasFieldsEnclosedInQuotes Denotes whether fields are enclosed in quotation marks when a delimited file is being parsed.
Public property LineNumber Returns the current line number, or returns -1 if no more characters are available in the stream.
Public property TextFieldType Indicates whether the file to be parsed is delimited or fixed-width.
Public property TrimWhiteSpace Indicates whether leading and trailing white space should be trimmed from field values.
Top
Show:
© 2014 Microsoft