How to read from a file then display to console?
I am stuck on a problem. It asks me to :
Write a program that reads from total.dat file and displays its contents to the console. The program should allow the user to add new entries to the file.
So far this is what I've got and I'm not sure if I even started right.
using namespace std;
int main ()
cout << dataIn;
If anyone can help me that'd be greatly appreciated thanks
Last edited on
Topic archived. No new replies allowed.