Reputation: 534
I'm trying to move a file :
File.Move(fileFullPath, historyFileFullPath);
After i have closed the stream reader :
parser.Close();
/// <summary>
/// closes the file stream
/// </summary>
public void Close()
{
streamReader.Close();
}
Yet i'm getting the error : the process cannot access the file because it is being used by another process can anybody shed some light ?
Upvotes: 1
Views: 987