This is a discussion on pending
in string? within the C# Programming
forums, part of the General Programming Boards category; Hello everyone,
I am using the following code to read a string. The content of message is ends with a ...
pending \0 in string?
I am using the following code to read a string. The content of message is ends with a lot of \0 characters. Why and how to remove them?
(context is an instance of HttpListenerContext, and my code is read Http request from begin to end)
using (StreamReader requestStream = new StreamReader(context.Request.InputStream))
message = requestStream.ReadToEnd();
thanks in advance,
the hat of redundancy hat
Sounds vaguely familiar, how did you manage it last time ? Maybe it's the same problem.
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ
ask a smart question
Popular pages Recent additions
By digioz in forum C# Programming
Last Post: 09-07-2008, 05:30 PM
By guitarist809 in forum C++ Programming
Last Post: 09-04-2008, 07:02 AM
By TransformedBG in forum C++ Programming
Last Post: 11-29-2006, 11:03 PM
By NANO in forum C++ Programming
Last Post: 12-09-2002, 03:23 PM
By spentdome in forum C Programming
Last Post: 05-27-2002, 07:49 PM