Re: [squid-users] Info on redirector's pattern

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Wed, 08 Mar 2006 00:03:54 +0100

tis 2006-03-07 klockan 16:15 +0100 skrev Stefano Del Furia:
> Thanks for the info.
> I have read and i think to understand the process.
> So i have build a simple redirector in C# under windows environment like
> this:
>
> string text = "";
> while ( Console.In.Peek() != -1 )
> {
> text = Console.In.ReadLine();
> Console.Out.WriteLine(text.ToUpper());
> }

Not a C# programmer but are you sure about the Peek function?

The program should loop continously until EOF is detected on input..

Regards
Henrik

Received on Tue Mar 07 2006 - 16:04:00 MST

This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:03 MST