I could not find the answer to this question and was not sure how to test it.
If I have the following two lines:
TextWriter tw = new StreamWriter(txtPath,true);
File.Copy(OriginalPath, DestinationPath));
tw.WriteLine("blah");
Does the 3rd line remain until File.Copy is fully completed or the 3rd line is started while the File.Copy file is still running?
source
share