CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2003
    Posts
    100

    Write files in memory

    I want to use fopen,fwrite,fread on files in RAM, not on disk.
    Is it possible ?

    Thanks.

  2. #2
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: Write files in memory

    What do you mean by files in RAM?
    Memory usually had data and not files.
    Are you talking about a RAM drive?
    If so you definitely can use those functions on it.
    «_Superman
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

  3. #3
    Join Date
    Apr 2003
    Posts
    100

    Re: Write files in memory

    Quote Originally Posted by _Superman_ View Post
    What do you mean by files in RAM?
    Memory usually had data and not files.
    Are you talking about a RAM drive?
    If so you definitely can use those functions on it.
    Is there a simple way to create a RAM drive in Windows XP ?
    Thanks.

  4. #4
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: Write files in memory

    «_Superman
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

  5. #5
    Join Date
    Jul 2009
    Location
    India
    Posts
    835

    Re: Write files in memory

    creating RAM drive is nothing about visual c++ coding.. u can google for it and see a lots of results..

  6. #6
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Write files in memory

    If you're using MFC, you might also consider CMemFile.

    http://msdn.microsoft.com/en-us/library/tzdxd4x0.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured