|
-
May 21st, 2018, 08:58 PM
#2
Re: How do I import a Tab Delimited Text File into a DataTable?
You cannot specify that a file is Tab-delimited in the connection string. You can only specify that it is delimited. You specify that the delimiters are Tabs elsewhere, either in the Registry or a schema.ini file. Note that the first example here specifically mentions the Registry. You can find reference to a schema.ini file here.
As an alternative, you could use a TextFieldParser and load the data into a DataTable yourself, which would allow you to avoid specifying the delimiter in a secondary location.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|