this is the txt file to read. its on specific format
by using sstream and getline function i have to extract id, title, author ,abstract and store all the respective words in vector. i am stuck.
using namespace std;
int main(){
string filename;
cout<<"Please enter the name of the collection file: ";
getline(cin,filename);
fstream file(filename.c_str());
if(!file)
{
cout<<"Error!! opeaning the file. Please check your file name. \n";
return EXIT_FAILURE;
}
else{
Aucun commentaire:
Enregistrer un commentaire