Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Naieve to Database

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic