Код: Выделить всё
// files = (1000's of files in folder xxx);
for (string f in files){
string contents = File.ReadAllText(f);
// do some work with the contents which is
Подробнее здесь: [url]https://stackoverflow.com/questions/78704976/will-this-hog-the-iohdd[/url]