Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using JDBC to access flat file database

Status
Not open for further replies.

kumarbabu

Programmer
Aug 11, 2000
8
US
Using JDBC i have to build a program using a flat-file database containing names, addresses, telephone numbers, email addresses, etc. You should be able to easily add <br>&nbsp;is there any how i can insert the data in a flat file through jdbc and retrivieve through jdbc.i can just read the flat file by files and streams but i dont want like that i want it to be done through jdbc.if so how is the driver configured and how are the related data types.do all<br>the text driver support this concept.how do i know what kind<br>of data is there in the table kindly correct me if iam wrong any where.if known how do i access the data
 
Well, first you'd need to find a driver for flat-file databases... which... umm... I don't think they exist.<br><br>JDBC implies a real connection to a real database, where you have tables. A file, at most, has rows.<br><br>If you need to go through a flat file, you can do so without JDBC (which would be much easier) using StreamTokenizer. <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence.
 
imotic: you proved to be thick headed again. Do you even try to see what the people are saying? This is another case when the person has asked a clear question and you said something that proves you have NO idea what you are talking about.
Why tell them to use StreamTokenizer when they already say they don't want to do it.

And you are wrong about one more thing. There are about 15 Flatfile JDBC drivers out there available for free.

kumarbabu:
Here is the best one in my opinion.
There are plenty more available from various authors, some with source code as well.
 
do you really NEED to insult people trying to help ? do you REALLY expect to get some help after this ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top