檔案 '<filename>' 不是文字檔

更新:2007 年 11 月

指定的檔案是二進位檔案 (Binary File),所以無法進行寫入。

錯誤 ID:BC2015

若要更正這個錯誤

  • 請檢查您提供的是正確的檔名和路徑。

請參閱

工作

HOW TO:在 Visual Basic 中剖析檔案路徑

參考

My.Computer.FileSystem.WriteAllText 方法

My.Computer.FileSystem.WriteAllBytes 方法

其他資源

在 Visual Basic 中寫入檔案