.NET C# Filestream writing to file and reading the bfile
- by pythonrg7
I have a web service that checks a dictionary to see if a file exists and then if it does exist it reads the file, otherwise it saves to the file. This is from a web app. I wonder what is the best way to do this because I occasionally get a FileNotFoundException exception if the same file is accessed at the same time.
Here's the relevant parts of…