File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

Naieve to Database

 
uzma ali
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am just a starter. The question might sound very stupid to some of you but I appreciate if somebody answers me.

I downloaded B&S. Having problem in reading database file.

Do I have to use ODBC:JDBC to read this file or some RandomAccessFile method(which I am not really aware of).

I know it is a forum of extreamly expereienced professionals but I'll do work hard and come to a point where I'll be suggesting to others.

Any help is appreciated

Uzma
 
Liviu Carausu
Ranch Hand
Posts: 159
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
You should use RandomAccessFile for accessing the file . JDBC is for connecting to real databases management systems (like Oracle, Postgresql) . See JBDC_Wiki
for JDBC API description.
Greetings,
Liviu
 
Marcelo Camargo
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
If you are doing the SCJD assignment, to get a better idea of what the project is, I recommend the "SCJD Exam with J2SE5" book. It is a short book, and direct to the point. I am sure it will help you about any topic you have.

The book explains in details how to use the random access objects to access a file, and implements an example database.

The second tool is this forum. As you could see, your first question was asked quicly.

Good look,
Marcelo.
 
uzma ali
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is my code and it is getting to end of file exception . Please help

[ July 28, 2007: Message edited by: Barry Gaunt ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Perhaps you should post the output of your program, rather than your code. Why are you skipping 8 bytes at the start of your file?

And please use tags around properly formatted code.
[ July 28, 2007: Message edited by: Barry Gaunt ]
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic