Does anyone have a compelling reason why System.IO.File.ReadAllText throws a System.IO.IOException when you call it when the file is being written to? Obviously, the cause of the exception is that internally it allows only Read sharing. But, why?
It's not a terribly big issue, because creating the System.IO.FileStream and passing that to the System.IO.StreamReader is trivial. However, that doesn't quell my curiousity. Is it an implementation bug, or was it intentional?