Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TextFieldParser Properties

TextFieldParser Properties

  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 parsing a delimited file.
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

Community Additions

ADD
Show:
© 2015 Microsoft