Quote:Original post by Nypyren
Other than that, the FileShare.ReadWrite will probably work fine if you make sure your write buffer is flushed or the stream is closed before readers are allowed to read).
Considering that the two threads are running independent of eachother, I can't make sure my write buffer is flushed before a reader reads it.
Are you absolutely certian that there is a possibility that the read will read the partially written data?