multiple file streams on the same file
is it possible to have a file stream for writing and one for reading a file? I thought this would be possible with FileShare.Read but I get an exception after having created the file (with my write stream) and trying to open it with my read stream.
It looks like this:
this.writeStream = new FileStream(this.dataUri, FileMode.CreateNew, FileAccess.Write, FileShare.Read);
this.readStream = new FileStream(this.dataUri, FileMode.Open, FileAccess.Read, FileShare.Read);
And I'm getting the following exception at the 2nd line:
The process cannot access the file '<filename>' because it is being used by another process.
Can anyone help?

