also if anyone can tell me how do I load a file in order to make it appear on the console as well as the file... because when I run the program I have to go look for the file instead of the file opening itself...
Ok you can find toturials on youtube but here is some sample code.
You will need: #include <fstream>
The code to output it:
1 2 3 4 5 6
fstream textfile;
string A;
textfile.open("YOUR TEXT FILE'S LOCATION");
textfile >> A; //Saves the textfile to string A;
cout << A; //If you don't want it to be saved as a data type just cout textfile
textfile.close();