Console.In.ReadToEnd never return

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zlf

    Console.In.ReadToEnd never return

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

    Thanks

    zlf


  • Alberto Poblacion

    #2
    Re: Console.In.Read ToEnd never return

    "zlf" <zlfcn@hotmail. comwrote in message
    news:%23kVb9OqV IHA.4696@TK2MSF TNGP05.phx.gbl. ..
    I'm using Console.In.Read ToEnd 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.

    Comment

    • rossum

      #3
      Re: Console.In.Read ToEnd never return

      On Mon, 14 Jan 2008 19:51:01 +0800, "zlf" <zlfcn@hotmail. comwrote:
      >Hello
      >I'm using Console.In.Read ToEnd 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

      Comment

      • Ignacio Machin \( .NET/ C# MVP \)

        #4
        Re: Console.In.Read ToEnd never return

        Hi,

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

        --
        Ignacio Machin
        The #1 Warehouse Management System & Direct Store Delivery Software (DSD) for QuickBooks & ERP Systems – LaceUp Solutions

        Mobile & warehouse Solutions.
        "zlf" <zlfcn@hotmail. comwrote in message
        news:%23kVb9OqV IHA.4696@TK2MSF TNGP05.phx.gbl. ..
        Hello
        I'm using Console.In.Read ToEnd to read string from console input, but I
        found it never return.
        What character I should input to end it input?
        >
        Thanks
        >
        zlf
        >

        Comment

        • christery@gmail.com

          #5
          Re: Console.In.Read ToEnd never return

          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...

          Comment

          Working...