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

List:       lyx-devel
Subject:    Re: C++ question
From:       larsbj () gullik ! net (=?iso-8859-1?q?Lars_Gullik_Bj=F8nnes?=)
Date:       2005-06-06 1:43:45
Message-ID: m3oeakuuni.fsf () tyfon ! gullik ! net
[Download RAW message or body]

Angus Leeming <leeming@lyx.org> 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

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

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