I have a problem where I am attempting to add appropriate articles to the beginning of French country names. That part wasn't an issue but trying to print it out hasn't worked so well. There are special characters in the file and while it seems to read them just fine it won't print them out just fine. I am using visual studios and here are examples of words from the text file named "FrenchCountriesUnfinished.txt" that I am trying to print out
l'Algérie, la Norvège, la Zélande, la Suède, le Zaïre
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
ifstream file("FrenchCountriesUnfinished.txt");
string str;
while (getline(file, str)) {
cout << str << endl;
}
return 0;
}