Console.In.ReadToEnd never return

  • Thread starter Thread starter zlf
  • Start date Start date
Z

zlf

Hello
I'm using Console.In.ReadToEnd to read string from console input, but I
found it never return.
What character I should input to end it input?

Thanks

zlf
 
zlf said:
I'm using Console.In.ReadToEnd to read string from console input, but I
found it never return.
What character I should input to end it input?

Type Control-Z on a line by itself, followed by Enter.
 
Hello
I'm using Console.In.ReadToEnd to read string from console input, but I
found it never return.
What character I should input to end it input?

Thanks

zlf
First try Enter/Return. If that does not work then try Ctrl-Z and if
that does not work then try Ctrl-C.

rossum
 
Hi,

What are you trying to do?
I think it's better if you use ReadLine instead
 
What character I should input to end it input?

The power button? Ctrl-Z is EOF, Ctrl-C is break.. but the power
button is the key to end input...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top