Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > how to save a file to memory rather to disk?

Reply
Thread Tools

how to save a file to memory rather to disk?

 
 
Cholo Lennon
Guest
Posts: n/a
 
      04-04-2011
On 29/03/2011 15:51, puppi wrote:
> You could try using shared memory, by looking into the functions
> mmap() and shmget(). However, note that it's quite a low level
> approach. Also, they are not Standard C++ functions, they are POSIX's.
> If you have specific OSs in mind, such as Linux, then it's an
> alternative. Just don't expect the portability to be the same as using
> the filesystem.


The OP could try using Boost.Interprocess library if he/she wants to use
a portable shared memory approach.

Regards

--
Cholo Lennon
Bs.As.
ARG
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
jar file from Eclipse at the root of the jar file rather than nestedin directories wong_powah@yahoo.ca Java 0 03-27-2008 06:26 PM
maps to hold ultra large data sets using customer allocators to allocate disk space rather than main memory CMOS C++ 15 05-17-2007 10:12 PM
Force browser to open a file (rather than save/open/cancel) tiewknvc9 Java 12 02-19-2007 08:21 PM
prompting to "save as" rather than opening images Richard Hollenbeck Javascript 5 01-13-2004 05:36 AM



Advertisments