[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-devel
Subject:    Re: C++ question
From:       Angus Leeming <leeming () lyx ! org>
Date:       2005-06-06 6:13:57
Message-ID: d80sla$9vt$1 () sea ! gmane ! org
[Download RAW message or body]

Lars Gullik Bjønnes wrote:
> | 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.

Thanks, Lars. I suspected that was going to be the answer.
Angus


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic