Changing a space to a character

  • Thread starter Thread starter Jay Weston
  • Start date Start date
J

Jay Weston

Hi

I have converted a string into a uuencode format, but i wish to change the
spaces in the string into the char ' , does anyone have any ideas on how i
can do this?

Thanks
 
After uuencoding? That would be extremely tricky.

Before uuencoding it's pretty easy.
 
so how could i do it before then?
would i be able to keep the ' after the string in encodeed?
 
string.replace

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
Hi,


Just a reminder, String is an inmutable class, there String.Replace will
create another string with the replaced chars , meaning you have to assign
it :

stringVar = stringVar.Replace( ' ', ',' );


cheers,
 

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