Click here to Skip to main content
15,936,903 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to connect to Flat Text File by Oledb in C#.File have data delimated by ~(Tild)

I am using below connection String for Flat Text File By (Oledb) having Extension .PTS (File can be open in Notepad only extension is different).

I am getting Error
"Format of the initialization string does not conform to specification starting at index 62"

Connecting to a Text file using the JET OLE DB Provider:
strConnect = 
        _T("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\DatabasePath\\;"
        "Extended Properties=\"\"text;"

Appreciate Your reply

1 solution

Check this LINK.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900