Reading from the Excel file to the console

Okay, so I can save data from the program to the excel file. But now, I want it to appear on the console whatever is on the excel file.
This is the code that I used:

#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;
int main()
ifstream indata;
ofstream outdata;
string Groom, Bride, Venue, TimE, DatE;
int Guests;"weddingdata.csv", ios::app);
cout<<"Please enter date of the reception (Use dash to separate): ";
cout<<"\nPlease enter time of the reception (Use colon and dash): ";
cout<<"\nPlease enter the name of the groom: ";
cout<<"\nPlease enter the name of the bride: ";
cout<<"\nPlease enter the number of guests: ";
cout<<"\nPlease enter the venue of the reception: ";

int x;"weddingdata.csv");

return 0;

Please help me. I need to turn this in to my professor in a few hours and I'm still stuck. Thanks in advance whoever tried to help me. :)
Sorry for the late reply. I am not very clear with the "console" that you are talking about, so I just attach this link, hope it can help you in some degree.

1) Use the "code" tag to post code, its easier to read for forum members
2) Dont use "system" read here
3) Use indata >> DatE; indata >> TimE; //etc to read from the file.
4) You already know how to output that on console using cout
Topic archived. No new replies allowed.