I design a file format that contains four blocks:Header Block,Data Block,Event Block,Remark Bolck recently.This file format is used in data collection situation.
The Header Block is fixed length.The Data Block is increase in data collection progress.The Event Block,Remark Bolck as also.
|Heder |
|Collect Data Row 1 |
|Collect Data Row 2 |
|Collect Data Row 3 |
|...... |
|Collect Data Row n |
|Event Data Row 1 |
|Event Data Row 2 |
|Event Data Row 3 |
|...... |
|Event Data Row n |
|Remark Data Row 1 |
|Remark Data Row 2 |
|Remark Data Row 3 |
|...... |
|Remakr Data Row n |
Because long process of data collection,the collection file is so big that must use mapview to acess or read.
Assume that the Data Block allocation 64K size space, and data collection has filled the space.If you continue to write the data will cover the Event Block.How to design a file or map in order to ensure they are stored contiguously in a file?
My english is poor, please forgive me.