Meaningless Drivel is fun!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: Problem -read field length in bytes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S: Problem -read field length in bytes " Watch "B&S: Problem -read field length in bytes " New topic
Author

B&S: Problem -read field length in bytes

Vaishali Paramane
Ranch Hand

Joined: Mar 05, 2007
Posts: 106
Hi
following is a code to read database.
I want to read field lenght.
right now i used hard coded.

Can anybody help me?



[ August 09, 2007: Message edited by: Barry Gaunt ]

SCJP, SCJD
Preparing for SCWCD
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
I have edited your post because we do not allow such large amounts of code which can possibly tell how to read the datafile.

Now - what exactly to you expect? What is the result that you are getting that is confusing you?

//I have problem here I want to display this field size


Why don't you just print it out?
[ August 09, 2007: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Sanjeev Singh
Ranch Hand

Joined: Nov 01, 2006
Posts: 381
following is a code to read database.

It is for reading the schema.
Why you are reading a short value though it is byte?


~Sanjeev Singh<br />SCJP 1.5
Vaishali Paramane
Ranch Hand

Joined: Mar 05, 2007
Posts: 106
Thanks Barry & Sanjeev

Thanks for help

My problem solved
[ August 10, 2007: Message edited by: Vaishali Paramane ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: B&S: Problem -read field length in bytes
 
Similar Threads
NX:[URLyBird]How to use the specified Data File Format?
still stuck in database
B&S:db format question
B&S: problem in the db file processing
DB file reading problem