Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCMJD
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
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
Forum:
Developer Certification (OCMJD)
delete method in B & S
mohini lalwani
Greenhorn
Posts: 25
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
When I am deleting record then
database.writeByte(0xFF);
where
database is instance of RandomAccessFile
and when I looked at .db file
I found this character begining of record which i deleted using deleted (recNo)
�
is it okay ??
because in sun instruction written
"1 byte "deleted" flag. 0 implies valid record, 1 implies deleted record "
let me know
Oyvind Gjare
Greenhorn
Posts: 6
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Pramod,
are you using a hex editor (like ultraedit) to look at the file?
Oyvind
mohini lalwani
Greenhorn
Posts: 25
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am using TextPad to read the file .
Jeffry Kristianto Yanuar
Ranch Hand
Posts: 759
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I think the database file is not as simple as plain text file. To read it correctly, you have to point the RandomAccessFile pointer to the location of that byte and use its readByte() method.
Good Luck !!!
Jeffry Kristianto Yanuar (
Java
Instructor)
SCJP
5.0,
SCJA
,
SCJD
(UrlyBird 1.3.2)
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
NX:URLyBird About "deleted" flag
delete method of B&S
Database file wrong, what should I do ?
DB file -Data section.
delete method of B&S
More...