Converting a C++ string to a char array is as simple as using the string's c str function and then strcpy.
But how do you do the opposite?I have a char array like this: char arr[] = "This is a test"; which will be transformed to string str = "This is a test."