2
Reply

buffer = sr.ReadLine().ToCharArray())!=null

examenca

examenca

Jan 25 2005 8:30 PM
2.3k
Hi I have a Char buffer = new Char[1024] and i'm using StreamReader sr to read from a NetWorkStream. when launching the app it gives me an error at the end. while((buffer = sr.ReadLine().ToCharArray())!=null) { Console.WriteLine(buffer); } So basically i'm trying to print the information that is i'm receiving through the socket. Please help! Thanx.

Answers (2)