return(fileToOpen);
Returning a pointer to memory that is going out of scope is a bad idea. A REALLY bad idea.
Forget that the String class exists. Learn to deal with C strings - NULL terminated arrays of chars.
return(fileToOpen);
Returning a pointer to memory that is going out of scope is a bad idea. A REALLY bad idea.
Forget that the String class exists. Learn to deal with C strings - NULL terminated arrays of chars.