How to check if a memory mapped file exists?

I need a way to check if any MMF (memory mapped file) exists or not before accessing it in a controlled manner.

+5
source share
1 answer

You can use the MemoryMappedFile.OpenExisting method . It raises a FileNotFoundException in case the specified file is missing.

+6
source

All Articles