Is there an easy way to open an fstream using a string? My code is as follows:
bool openArray(std::string *arrayFileName, int *width, int *height,int *myArray)
{
std::fstream BoardFile;
BoardFile.open(*arrayFileName);
I obviously cannot use this method since *arrayFileName is not char* but is there another way to do it?