This should be easy - but I can't seem to find the solution.

I have the following code:
VB Code:
  1. File.Create("C:\TemplateTempFile.vsdir")
  2. Dim swrAddTemplates As StreamWriter = (File.AppendText "C:\TemplateTempFile.vsdir")

I get a file access violation - file used by another process - which I have determined to be the File.Create statement.

How can I end that process?