• Post Reply Bookmark Topic Watch Topic
  • New Topic

Data FILE , confused

 
Peter Kovgan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another question:
Data File Description.
What means "4 byte numeric, total overall length in bytes of each record "?
Is this all file length I should update every time I change file's data?
If I should update it I also need lock it?
How to access record's number if I know only contructor's ID?
Every time read all rows and determine every time which record number belongs to which contructor?
Please help me.
 
Chris Harris
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,
What means "4 byte numeric, total overall length in bytes of each record "?

In my assigment this means the fixed length of a record. Therefore you do not have to update this as all records are ALWAYS the same length.
As the record are fixed length you can then work out the record number from your pos in the DB.
Hope that helps
Chris
 
Peter Kovgan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Chris
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!