This documentation is archived and is not being maintained.

The stream passed to TextFieldParser cannot be read

Visual Studio 2008

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.