I have been messign with C++ for about six months off and on, and i have started learning about file i/o i can write to and read from a file,
How could i input int x=5;
into a text file, to be called the next time it was needed (The next time the program ran)

Thanks for the help