How to create memory file?
-
I cannot find a way to do that in C#... gave MemoryMappedFile a try, File is written to disk as well. I'm looking for a solution to write only to disk....
-
I cannot find a way to do that in C#... gave MemoryMappedFile a try, File is written to disk as well. I'm looking for a solution to write only to disk....
-
You need to create a file on Hard drive? Use methods from the built in classes of .net framework (File and Stream writer)
Ahsan Ullah Senior Software Engineer
Hi, thanks... I need the file to be in memory and not on hard drive....
-
Hi, thanks... I need the file to be in memory and not on hard drive....
-
Hi, thanks... I need the file to be in memory and not on hard drive....
What type of file? And for what will it be used? Have a look at System.IO.MemoryStream
-
True, but I have to avoid the disk writings, that I cannot do...
-
What type of file? And for what will it be used? Have a look at System.IO.MemoryStream
I would like to place a pointer in a mapped memory file for all dll's share... It has to be in memmory for preformance rather then on disk...
-
True, but I have to avoid the disk writings, that I cannot do...
The MemoryStream won't write to a file. That is, until your memory is full and Windows starts swapping to disk. You're gonna read/write a lot from several places in a single datastore? You've probably already tried it, but I still want to suggest the use of a database. There are some data-driven websites out there, serving lots o' people at once.. This site is one of them :) --Edit-- Removed some typo's..
-
I cannot find a way to do that in C#... gave MemoryMappedFile a try, File is written to disk as well. I'm looking for a solution to write only to disk....
You would have to use the Windows API to use a Memory Mapped File and potentially unsafe code. However, I believe that the FileStream class uses the Memory Mapped File under the scenes.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.