aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird - data file - termination with null 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 "URLyBird - data file - termination with null" Watch "URLyBird - data file - termination with null" New topic
Author

URLyBird - data file - termination with null

Robert Vilhelm
Greenhorn

Joined: Mar 27, 2006
Posts: 4
Hi all

I would like to ask somebody for your opinion, who has already faced this problem. (english is my second foreign language)

The text values (db-1x2.db) shorter than its max length are not terminated with null ('\0'), but followed with space ' ' without '\0'

But the specification exactly says:

All text values, and all fields (which are text only), contain only 8 bit characters, null terminated if less than the maximum length for the field.


I see thwo posibilities
1) I do exactly what specification says.
The spaces ' ' will be a part of the text value.
2) The right spaces will be truncated.

Thank you for your interest.
PS: Maybe it is not about the most complicated problem, but who knows
Robert
LianGuang Wang
Greenhorn

Joined: Mar 26, 2006
Posts: 11
wow!i'm thinking this problem now!and be confused by this too!in my db file,is filled with space as your!who can help us???
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11460
    
  94

You might be interested in this topic.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLyBird - data file - termination with null