I\'ve apparently worked myself into a bad coding habit. Here is an example of the code I\'ve been writing:
using(StreamReader sr = new StreamReader(File.Open
I would try to use FileInfo.Open() and FileInfo.MoveTo() instead of File.Open() and File.Move(). You could also try to use FileInfo.OpenText(). But these are just suggestions.
FileInfo.Open()
FileInfo.MoveTo()
File.Open()
File.Move(
FileInfo.OpenText()