Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am using delegates and event handlers.
C#
 public delegate void StringReadEventHandler(string text);

// Event to notify of a string read from stdout stream
public event StringReadEventHandler StdoutTextRead;

// Event to notify of a string read from stderr stream
public event StringReadEventHandler StderrTextRead;

//invoke event
 StdoutTextRead(textbuffer.ToString());

How can I send this text to a file?

Regards,
Anju
Posted
Updated 20-Apr-13 5:17am
v2

1 solution

Use a TextWriter[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900