473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Console.In.ReadToEnd never return

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
Jan 14 '08 #1
4 3629
"zlf" <zl***@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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.

Jan 14 '08 #2
On Mon, 14 Jan 2008 19:51:01 +0800, "zlf" <zl***@hotmail.comwrote:
>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

Jan 14 '08 #3
Hi,

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

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
"zlf" <zl***@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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

Jan 14 '08 #4
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...
Jan 14 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: foobar | last post by:
I'm trying to encypt a file using PgpCmdLn 6.5.8 from an asp.net page. My code looks like this: private String ExecuteProcess(String Arguments) { String msg = String.Empty; try
5
by: me | last post by:
How do i trap the incomming data to the console? lets say I wrote a console app that pings another computer in the network. I see the following in the console: Reply from 180.100.24.5: bytes=32...
2
by: Martín Marconcini | last post by:
Hello there, I'm writting (or trying to) a Console Application in C#. I has to be console. I remember back in the old days of Cobol (Unisys), Clipper and even Basic, I used to use a program...
1
by: Ollie | last post by:
I have an aspx page that contains a web control that contains 2 text boxes and button to submit the text. I am trying to submit text and collect the response from a console application, but it is...
5
by: Markus S. | last post by:
Hello, I have a problem with a DOS EXE that is called by a .Net Winforms application. I need to redirect the console output into a textbox, but this should happen in real time, so when new...
1
by: Ken Kast | last post by:
Is there any way programmatically to have a console app start in a minimized window?
7
by: mabra | last post by:
Hi All ! Problem:Reading/duplicating "Console.In" fails for unknown reason. I wrote a little console helper tool, named TEE, which just duplicates the StdIn to the StdOut AND an additional...
2
by: GD | last post by:
I am trying to execute a third party console application and return the result dispalayed in the console screen. Can this be achieved? Thanks. GD
1
by: Claire | last post by:
Hi, I'm trying to run mysqldump.exe from my c# application, running on windows vista with visual studio 2005. The following code does not produce the output file. The same line used in a command...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.