1 // =================================
 2 // Copyright (c) 2022 Seppo Laakko
 3 // Distributed under the MIT license
 4 // =================================
 5 
 6 using System;
 7 using System.Collections;
 8 using System.IO;
 9 
10 void Catenate(const List<string>& files)
11 {
12     for (const string& file : files)
13     {
14         if (file.IsEmpty())
15         {
16             string content = Console.In().ReadToEnd();
17             Console.Out() << content;
18         }
19         else
20         {
21             string content = File.ReadAllText(file);
22             Console.Out() << content;
23         }
24     }
25 }