473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Reading a .DAT file with the Microsoft Text Driver

I have an application that uses the Microsoft Text Driver to read ASCII
delimited files. Most of the time these files are either CSV or TXT
file extension. Recently I needed to read some that had a DAT file
extension. When I tried to open it with the Microsoft Text Driver an
exception was thrown that said the file was already in use. But if I
simply rename the file with a TXT file extension the application opens
and reads the file just fine.

What gives?

Dec 5 '06 #1
2 2002
Is there a special reason for using the text driver versus a .net built
in method?

za***@construction-imaging.com wrote:
I have an application that uses the Microsoft Text Driver to read ASCII
delimited files. Most of the time these files are either CSV or TXT
file extension. Recently I needed to read some that had a DAT file
extension. When I tried to open it with the Microsoft Text Driver an
exception was thrown that said the file was already in use. But if I
simply rename the file with a TXT file extension the application opens
and reads the file just fine.

What gives?
Dec 5 '06 #2

Charlie Brown wrote:
Is there a special reason for using the text driver versus a .net built
in method?
Ignorance?

When developing the application I was told to use the text driver
because that would make it easier to modify the application later to
add other ODBC data sources.

>
za***@construction-imaging.com wrote:
I have an application that uses the Microsoft Text Driver to read ASCII
delimited files. Most of the time these files are either CSV or TXT
file extension. Recently I needed to read some that had a DAT file
extension. When I tried to open it with the Microsoft Text Driver an
exception was thrown that said the file was already in use. But if I
simply rename the file with a TXT file extension the application opens
and reads the file just fine.

What gives?
Dec 6 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Roland Hall | last post by:
I have two(2) issues. I'm experiencing a little difficulty and having to resort to a work around. I already found one bug, although stated the bug was only in ODBC, which I'm not using. It...
14
by: Roland Hall | last post by:
I have two(2) issues. I'm experiencing a little difficulty and having to resort to a work around. I already found one bug, although stated the bug was only in ODBC, which I'm not using. It...
3
by: Roland Hall | last post by:
Three times the charm? Sorry for the repost. Trying to get my account right. I have two(2) issues. I'm experiencing a little difficulty and having to resort to a work around. I already...
4
by: Amit Maheshwari | last post by:
I need to read text file having data either comma seperated or tab seperated or any custom seperator and convert into a DataSet in C# . I tried Microsoft Text Driver and Microsoft.Jet.OLEDB.4.0...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.