The snippet of code was just supposed to write a string into a text file called \"all_results.txt\". I had errors implementing in File.WriteAllText. After searching the net
Maybe the file is accessed by virus scanner or windows indexing service?