Unable to read fixed width fields because FieldWidths is Nothing or empty

The TextFieldParser is unable to read fixed-width fields because the FieldWidths property is set to Nothing or is empty.

To correct this error

  • Set FieldWidths to a valid value.

See Also

Tasks

How to: Read From Fixed-width Text Files in Visual Basic

Reference

TextFieldParser.SetFieldWidths Method

TextFieldParser.FieldWidths Property

TextFieldParser Object