I was not lucky to find obvious places to answer the question why using File.WriteAllLines (); does not work on StringCollection output:
static System.Collections.Specialized.StringCollection infectedLog = new System.Collections.Specialized.StringCollection();
Omitting here the code that is populated by the infected log .......
File.WriteAllLines(@"C:\CustomSearchInfectedFiles.txt", infectedLog);
Can someone tell me what I'm doing wrong, or point me in the direction of an explanation that I like?
user1192312
source share