System.IO.File.Create locking a file
<p>Just as the question says... I'm using System.IO.File.Create to create a file. I'm not writting to it with a stream writer, just creating it.</p>

<p>I get a server error in the front end when the app trys to open the newly created file - that the file is in use. Garbage collection then seems to come along and a few minutes later all is OK.</p>

<p>Now I know if I was using Streamwriter I would have to close it. Does the same apply to creating?</p>

<p>I've read that opening a stream writer to the file then immediately closing it will fix this but it seems messy. Is there a simpler way?</p>

<p>Thanks!</p>
