For a program I am writing I trying to return a string from a file, and I use that string in a different cpp file. The cpp code that read from the file is not in the same cpp file which I want to use the string in. I have linked the two using a header file. My question is how do I return the string called number from the following function. If I put string in place of void it gives me an error, if I leave it as void it also gives me an error and if I put char* it gives me an error saying "cannot convert 'std::string' to 'char*' in return".
Please help thank you.