I am trying to write byte array content in memory to a file. Here is what I did:
var bw = new BinaryWriter(File.Open("c:\\Tmp\\" + a.Name, FileMode.OpenOrCreate));
bw.Write(((FileAttachment)a).Content);
But I find in some cases that I can't manually open the file in 'File Explorer' until I kill my C# which writing the file. Can you please tell me what is that?
Thank you.