Anyone know how to create a string that stores the name that the user wants to use for it's txt file? In short cin>>string use it for string.txt This has some to do with C as well, using it's syntax i can't. Thanks in advance Edited: Just asked my classmates, they said use fstream, so i'll go and read more about how to use it.
hmm i dont really think u can do that. well who am i kidding. im just a beginner too. but usually i just name the file at the spot. #include <fstream> //file stream directory ofstream outfile ("NameOfTheFile.txt");