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
Use FileOptions.DeleteOnClose | FILE_FLAG_NO_BUFFERING the & cancels them out.
FileOptions.DeleteOnClose | FILE_FLAG_NO_BUFFERING
&
FILE_FLAG_NO_BUFFERING & FileOptions.DeleteOnClose returns FileOptions.None
FILE_FLAG_NO_BUFFERING & FileOptions.DeleteOnClose
FileOptions.None