#include <fstream>
usingnamespace std;
int main()
{
ofstream a_file("example.txt"); //this creates it.
a_file << //use this to write to it.
ifstream b_file("example.txt"); //opens the file for reading
a_file >> //use this to read from it.
system("pause");
return 0;
}
I'm not advanced in c++. I haven't even worked with it for a week yet lol. but I was saying what was happening because it seemed self explanatory that way...If there is something you don't understand then by all means ask away :) I'll do my best to answer questions! sorry if it was confusing.