using (TextWriter writer = File.CreateText(path2))
{
writer.Write(SomeText);
}
This is problematic piece of code. When I write to file, it's ok, until other app open the file. Then I get error.
How to write files that can be read in same time?