|
In some cases, people are really thinking of better ways, such as those for database systems.
But they are generally based on the same level of the file system and then encapsulate their own layer of a more abstract logical file format to achieve the purpose, such as dividing a file into pieces, putting a few bytes on each block header, and marking it. Is this piece still useful and where is the next piece?
But for ordinary occasions, this is not only tedious, but also not very beneficial in the matter, especially, you have to write, read, and assemble the program yourself, which is very troublesome.
If your file is a special binary file, it can be divided into fixed length records one by one, and if you are not afraid of trouble, you can also do this, hoho.
You can also consider using a B-tree, which is usually not necessary. :( |
|