Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

2 bytes flag problem!

 
xi brian
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"2 byte flag. 00 implies valid record, 0x8000 implies deleted record"

i can read from the file which has 00

but how can i assign 2 bytes with 0x8000 ?
 
rohan tiwari
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I think when you delete a record you need to replace the valid flag 00 before the record by a delete flag .using the writeShort("0x8000") method.
[ March 20, 2008: Message edited by: rohan tiwari ]
 
xi brian
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic