Use the string operation data or castor to extract the char array containing a string stored in a string object. For example, use stream Name. Open (file Name. data ()); to open a stream to a file whose name is stored in the starting object fi 1eName.