Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC and TextFiles

 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have 4 textfiles,each having 5 columns delimited by space(eg.-- bill clinton male 34 married).Now,I want to query these files using SQL statements .Can I use JDBC to do so?
thanks
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it would be much faster and stable(no dsn setup, portablility issues, etc) using file IO - random access files.
http://java.sun.com/docs/books/tutorial/essential/io/rafIO.html
Jamie
[ February 05, 2002: Message edited by: Jamie Robertson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic