How to create File with the FILE_ATTRIBUTE_TEMPORARY in C#? (So to store Data in Ram but be able to use it as normal file)
I believe you'll have to use P/Invoke to call the native CreateFile
then use the FileStream(SafeFileHandle, FileAccess) constructor on FileStream
. MSDN has a sample for how to use SafeFileHandle and CreateFile together.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With