Hi,
The below code doen't seem to work :-(( The hex number I am trying to fetch is incorrect. Please can any one throw somme light
The below code doen't seem to work :-(( The hex number I am trying to fetch is incorrect. Please can any one throw somme light
Code:
NetworkStream ns= new NetworkStream(soc);
StringBuilder strBuff = new StringBuilder();
Int64 ch;
char rdCh;
do
{
ch = ns.ReadByte();
rdCh = Convert.ToChar(ch);
strBuff.Append(rdCh);
} while (rdCh != '\n');
int size = Int32.Parse(strBuff.ToString(), System.Globalization.NumberStyles.HexNumber);
Comment