DelphiFAQ Home Search:

Have a Delphi application write to standard error output (STDERR)

 

comments1 comments. Current rating: 5 stars (1 votes). Leave comments and/ or rate it.

Question:

WriteLn writes to STDOUT. How do I write to STDERR, the standard error output?

Answer:

Use the predefined text file variable ErrOutput as shown in the example code below. This has been around since Turbo Pascal 1.0.

// standard output, the next two are equivalent
WriteLn('Standard Output');
WriteLn(Output, 'Standard Output');

// writing to standard error output
WriteLn(ErrOutput, 'Error Output');

Comments:

2006-11-03, 01:44:02
anonymous from Australia  
rating
Thankyou very much

You sir are a genius

You must come from a non windows world to demonstrate such clarity and simplity

That is EXACTLY what i wanted to know !!!!

Congratualtions

Fil M

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Washington, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
Leave your comment here:
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.