Click here to Skip to main content
14,240,765 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi I using Microsoft.ACE.OLEDB.12.0 to read data from text file

This's my connection string
#define ACE_OLEDB_CSV_CONN_STRING L"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=%s;Extended Properties=\"Text;HDR=Yes;FMT=Delimited;\""


How do I to changed to delimited by another character
"FMT = Delimited" to the record is split by ','
How do I changed to delimited by another character
Posted
Updated 6-Feb-18 19:37pm
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You need to create schema.ini[^] file, which provides a way to set several options, like: delimiter, column name and type, first line, etc.

For further information, please see:
How to: Add a Schema Definition to a Text File Data Source[^]
Much ADO About Text Files[^]
   
Comments
Mạnh Lê 10-Dec-14 23:26pm
   
Thank for your information.
Maciej Los 11-Dec-14 1:41am
   
You're very welcome ;)

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100