Benjol
Benjol

Reputation: 66541

What's the escape key-sequence for System.Console.In.ReadToEnd?

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

Answers (1)

John Knoeller
John Knoeller

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

Related Questions