kittykat said:
Hi,
I was just wondering how can I convert a String into a char array?
Your help would be greatly appreciated,
Thanx in advance.
That depends: what's a "String"? If you mean the class called "string",
first notice that it is spelled with a lower case "s", which is very
important in C++. And in that case, you can call the c_str() function in
the string class to get a pointer to the character array, from which you are
free to copy to your own char array if you need. If you mean some other,
third-party class called "String", then you'd be best off asking the
creators of that class, or reading their manual.
-Howard