In my project I have to create some temp files in an USB device, which I want to delete on Closing. So I used a code like
this.fcommandHandler = new FileStream(T
Try including the WriteThrough
flag as well in a list using the | operator. See this KB on the requirements for using FILE_FLAG_NO_BUFFERING
. Its interesting that MS hasn't included this flag in the enum. Is there a reason why WriteThrough
doesn't do what you need in this scenario? You are trying to write secure data?