Angus Leeming <[EMAIL PROTECTED]> writes:

| I feel like a bit of an idiot asking this, but what's the C++ way to
| insert some data into an existing file?

How would you do it in any other language?

At end is easy. At start is more tricky...

If it were a memory buffer how would you do it then?
(memmove perhaps?)

You need to use some temporary (file or memory buffer)

Unless you mmap the file, then you might be able to use memmove.

-- 
        Lgb

Reply via email to