How I solve this issue on C# during File Creation, "the process cannot access the file because it is being used c#"\

public void Begin() { FileStream fileStream = new FileStream(System.Configuration.ConfigurationSettings.AppSettings["LogFileFolder"] + DateTime.Now.ToString("yyyyMMdd") + "_Log.txt", FileMode.OpenOrCreate, FileAccess.Write); w = new StreamWriter(fileStream); w.BaseStream.Seek(0, SeekOrigin.End); }



...

Go to the complete details ...