Delen via


The stream passed to TextFieldParser cannot be read

The TextFieldParser Object cannot read the stream that has been passed to it. This may be a result of attempting to read a file that is not a text file.

To correct this error

  • Check to make sure the file is a text file.

See Also

Tasks

How to: Read From Text Files with Multiple Formats in Visual Basic

Concepts

Parsing Text Files with the TextFieldParser Object

Reference

My.Computer.FileSystem.OpenTextFieldParser Method

TextFieldParser Object