Files accessed by aspx webforms and socket server. Lock file management issues
<p>I got a primitive website, where the aspx webform and socket server access flat files, which stores the data. The socket server writes the data to the file with File.Write calls and the aspx webform uses File.Readln calls to read the data from the file. Both the web form and socketserver will be accessing the same exact files to read and write. I think there may be an issue with locking the files. I think it is the higher priority for the server to quick write to the file and release any lock on the file. The webform should be able to read without interrupting the writing process of the server. What is the best way to do this? Is it with the using streamwriter?</p>

<p>Any help is appreciated.</p>
