load data from txt files c++

i got multiple txt files and i am trying to load data from the filed and want to store it in the vector. I am totally confused in it hoe to start it. Any kind of help will be appreciated. Thanks


Class Mail House{
public:
// loadMail(char*) - loads the file and sets any data from the file
// Preconditions: a valid filepath
// Postconditions: Loads m_mail. Returns int for status (1 - success, 0 - fai\
l)

//Thats my function
int loadMail(char*);
};

private:
// store all mail here
vector<Mail*> m_mail;


Last edited on
Your question is too vague.
Topic archived. No new replies allowed.