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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top