Reading A Fixed Format Text File

后端 未结 2 1387
鱼传尺愫
鱼传尺愫 2021-01-29 14:21

Its been years since I have had to attempt to read a file using either Microsoft Text ODBC Driver or Microsoft Jet OLE DB 4.0 Provider.

So I have the following code

相关标签:
2条回答
  • 2021-01-29 14:56

    Remove ' (just prior to 'text;) from the connection string.

    In order to resolve the "Could not find installable ISAM", run the following command: Regsvr32 c:\winnt\system32\mstext40.dll * Make sure that file is in that folder first. And change WINNT to whatever your windows directory is.

    0 讨论(0)
  • 2021-01-29 14:58

    I know this is not a real answer to your question, but i would really rethink about using this architecture to read in a file.

    I would really prefer something like CSV Reader, cause it gives you much more power about how the data will be interpreted. Alternative you could also take a look into the FileHelpers.

    0 讨论(0)
提交回复
热议问题