I am reading a file that has a column of words, but each time the column is read, the first letters are the only things that are outputed.
Does anyone have any simple solutions to this? I don't want to have each letter be a separate variable.
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
char EVENT_NAME;
ifstream in("C:\\Dokumente und Einstellungen\\Yaser\\Eigene Dateien\\Internship\\C++_Code\\Data_3.txt");
ofstream out("C:\\Dokumente und Einstellungen\\Yaser\\Eigene Dateien\\Internship\\C++_Code\\Output.txt");
string line;
while( in >> EVENT_NAME)
{
cout << EVENT_NAME << "\t" << endl;
}
return 0;
}