distributed-computing/tasks/moiseev-vv/lab_2/worker-1/Program.cs

10 lines
270 B
C#

List<string> numbers = new();
foreach (var file in Directory.GetFiles("/var/data"))
{
Console.WriteLine("Начало обработки файла " + file);
numbers.AddRange(File.ReadAllLines(file));
}
File.WriteAllLines("/var/result/data.txt", numbers);