I've been researching for a method to add a resource programmatically.
Basically I'm reading some values from a memory mapped file. I want to be able to create a resource string to store the values read.
MemoryMappedFile mmf = MemoryMappedFile.OpenExisting("test");
using (MemoryMappedViewAccessor accessor = mmf.CreateViewAccessor())
Byte buffer = new Byte;
accessor.ReadArray<byte>(0, buffer, 0, buffer.Length);
String S = Encoding.Default.GetString(buffer);
what i wanted exactly is to store data somewhere instead of file or a Database , because it was only an
ID so i solved it by storing it on a
current user so it won't need any admin privilieges .