473,503 Members | 2,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Console output

32 New Member
Hi all,
I found this ( http://dotnet.mvps.org/dotnet/samples/misc/#RedirectConsole)one to read the console output by line by line.But I am unable to detect the finishing of the console.output.How can I detect that the console application is finished

Thanks in Advance
Dana
Sep 4 '07 #1
7 1061
Plater
7,872 Recognized Expert Expert
The console output is "finished" when the console is closed. Which would close the stream.
Sep 4 '07 #2
danasegarane
32 New Member
Dear Plater,
Can u be Brief ?

Dana
Sep 5 '07 #3
Plater
7,872 Recognized Expert Expert
The console input/output/error is treated as a stream.
Unlike a filestream which has a definitive end (end of the file) the input stream does not have an end until it is closed.
Sep 5 '07 #4
danasegarane
32 New Member
Is there any method avl to detect that the console is finshed executing the code ?
Sep 6 '07 #5
Plater
7,872 Recognized Expert Expert
Is this console from another program that you are redirecting it?
Just watch for the end of the proccess?
Sep 6 '07 #6
danasegarane
32 New Member
I am only Redirecting
Sep 7 '07 #7
Plater
7,872 Recognized Expert Expert
So you are starting a process and redirecting it's stdio streams into your own project. So watch for when the process ends to determine when it's done.
Sep 7 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5350
by: Oz | last post by:
This is long. Bear with me, as I will really go through all the convoluted stuff that shows there is a problem with streams (at least when used to redirect stdout). The basic idea is that my...
2
22027
by: Boba | last post by:
Hi, I'm programming a WinForm application. I would like to enter commands that will send output that will help me to locate bugs in the future. I know that there is a way to send output by...
5
11191
by: Barry Mossman | last post by:
Hi, can I detect whether my class is running within the context of a Console application, vs say a WinForm's application ? also does anyone know whether the compiler or runtime is smart enough...
1
393
by: Oz | last post by:
This is long. Bear with me, as I will really go through all the convoluted stuff that shows there is a problem with streams (at least when used to redirect stdout). The basic idea is that my...
3
13843
by: TC | last post by:
I'm trying to debug a console application, but I can't see the console output. I've seen many references which say that console output is supposed to appear on the Output window when the...
0
7093
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
7287
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
7349
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...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5022
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.