string length adjustment

  • Thread starter Thread starter Justin
  • Start date Start date
J

Justin

Hello I am reading a string from a network buffer which is et to the
size of the TCP buffer. THe size of the strig then becomes 8193, is there
any way of converting this back to the size of the string which is contained
within in it.

All I am moving is the workd "Justin.jpg" so the trsing should have a length
of 10 characters. I have tried trimend and it makes no different to the
size.

Thanks,

Jusitn.

--
 
You mean extracting the string? Use Substring.

FYI, no matter what you do, a new string will be created as strings are
immutable..

Cheers
Daniel
 
Back
Top