hi,
i'm trying to upload data from a .txt file into a std::set.
i saved the data from the std::set into the .txt file successfully, but know, when i do the upload into the std::set the data is messed up :-(
this is what happens...
saved .txt file (everything ok):
uploaded data into the std::set:Code://'\n' ID type detail cost weight
this is my upload function:Code:Product 1: cost weight Product 2: ID type detail cost weight
what am i doing wrong ??Code:void grocery::loadProducts(string nameFile) { ... ... while(data) { data.ignore (100,'\n'); data.getline (str,100); i = str; ... ... data>> c; ... } }