B
blubzouf
I am searching some info about accessing files with stdio functions.
I am able to open a file, read in it with freaf, write in it with
fwrite, modifying its data in "r+" mode ( without truncation nor
appending ), but I have never found how to remove a piece of data
inside a file, like having sequences "aaaa" "xxxx" "bbbb", and needing
to removi second sequence to end with "aaaa" "bbbb", WITHOUT rewriting
the whole file...
Is that possible ? really..
for example, how databases like sqlite do to delete rows so quickly in
big files ? maybe they don't rewrite all the data, do they ?
Somebody told me about "externals data structures" but I didn't found
what he wanted to mean.
I am able to open a file, read in it with freaf, write in it with
fwrite, modifying its data in "r+" mode ( without truncation nor
appending ), but I have never found how to remove a piece of data
inside a file, like having sequences "aaaa" "xxxx" "bbbb", and needing
to removi second sequence to end with "aaaa" "bbbb", WITHOUT rewriting
the whole file...
Is that possible ? really..
for example, how databases like sqlite do to delete rows so quickly in
big files ? maybe they don't rewrite all the data, do they ?
Somebody told me about "externals data structures" but I didn't found
what he wanted to mean.