Hello everyone, i could really use some help in understanding how to write a program in a flat file?
I am having a hard time what is the purpose of the flat file (in this case a .txt file).
it runs like this:
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
using namespace std;
//the constant variabels
ofstream outfile;
//declared variables
outfile.open(x_b_.txt);
cin << smth;
I hope it is somewhat clear and please keep in mind i am a beginner
and i really apreciate the time and the effort from anyone Thanks.
cout >> smth;
outfile.close();
return 0;
thanks for the help it was useful. ( hamsterman (1600))