Subj : Re: converting a string to a char array... To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Thu Jan 01 2004 10:39 pm If you look a the string class in cstring.h you will see that it has a member function called c_str() which returns a const char * or a constant string. The return value is the char* style string which the string class contains. To get a standard char* string and not a constant one, copy it to a char* array. If the size of char_star_array is declared to be at least one more than the string, one more than string_class_instance.length(), then you can do something like this: strcpy(char_star_array, string_class_instance.c_str()); .. Ed > George Tamero wrote in message > news:3ff4e49d$1@newsgroups.borland.com... > > Does anyone know how to convert a string (from cstring.h ) > into a char array? I've got a borland C++ 5.02 compiler. This > is for DOS apps. .