Converting a String to a Char?


New member
I'm trying (in my code) to write list data (from a checked listbox) into a file. So far, my only error in the code is my conversion, I've tried all the tricks in my book, and I can't get this to work.
How would I convert a System::String^ to a char*?


Please note: I do not have many tricks up my sleeve
PPS. 666th post!

Problem solved, thanks
Last edited:
I'm sure someone will give you a real answer, but out of noob curiousity what language are you using, and do you mean a char array?

Is this what you're looking for? strcpy(buffer, name.c_str());
Last edited: