How convert char array to string?

  • Thread starter Thread starter Bill Todd
  • Start date Start date
Bill said:
What is the easiest way to convert a char array to string?

//honestly, i haven't checked this, but something's seriously wrong if
//it doesn't work
string s = new string(charArray);
 
Bill,
The String constructor that accepts a char array.

Hope this helps
Jay
 
Back
Top