共用方式為


無法使用目前的 FieldWidths 剖析第 <number> 行

更新:2007 年 11 月

無法剖析指定的行,因為欄位寬度並非指定的寬度。

若要更正這個錯誤

  • 調整 FieldWidths 以便正確剖析該行,或插入例外處理程式碼以便處理該行。

請參閱

工作

HOW TO:在 Visual Basic 中以多種格式從文字檔讀取

概念

使用 TextFieldParser 物件剖析文字檔

參考

My.Computer.FileSystem.OpenTextFieldParser 方法

TextFieldParser 物件

TextFieldParser.FieldWidths 屬性

TextFieldParser.SetFieldWidths 方法