Does this mean, the only way to remove a part of a file, is
to rewrite the file to disk, but without the removed part?!?
(I could do that, but I just wrote an insertion function,
which allows me to insert bytes in a file stream without
having to close and reopen the file stream, and would like
to have such an option for deletion as well)
Can anyone enlighten me on this?
Many thanks,
Dede
Jantje Smit wrote:
C++ doesn't have a provision to delete 'N' bytes directly from a file
without copying the file contents appropriately.
Your OS may have a solution for the same.
--
Nithyanand.
Siemens, Bangalore, India.
(Opinions expressed are my own and do not reflect the opinions of my
employer, SIEMENS)