hey guys, is there a way to send a file name as a string? I get an error if I leave out the quotes around fileName, and the opening failes if they are there...any suggestions? assume that the file that user input exists in the directory ofcourse...
thanks, axonCode:void generateText(string fileName, int window, int length, char* text) { ifstream inStream; inStream.open(fileName); // the problem is here...I assume if ( inStream.fail() ) { cout << "Input file opening for " << fileName << " failed. Exiting...\n\n"; exit(-1); } }



LinkBack URL
About LinkBacks


