Just a quick note on how to read from a file with stdin.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// program.cs
using System; namespace EchoAndSize { class Program { static void Main(string[] args) { String line = Console.ReadLine(); Console.WriteLine(line); } } class Program2 { } }