Reputation: 66541
I tried using System.Console.In.ReadToEnd (for code-golf, as it happens), but I can't work out what the key sequence is to get it to return from the console.
Upvotes: 2
Views: 365
Reputation: 34148
Ctrl+Z signals end-of-stream when typed in a console window interactively.
http://en.wikipedia.org/wiki/End-of-file
(Ctrl+Z has to be entered on a new line, and followed by enter)
Upvotes: 2