I was wondering if anyone else could give me some input on what would be the best way to search a string for some values, and then print it out.
Suppose I have a string like: ">From: me To: you Subject: fun! Message: I hope you're having fun and all Time: Fri Apr 11 17:57:16 2003"
First I want to search the string for who it's from, and the subject. I've been using string.find(">From") and then another .find() to get the end of the sender's name. Then I make a .substr() with those values. Then I do that again for the subject.
so like:Code:From Subject ----------------------------------- 1. Me fun! 2. Me C++ is cool!
I've also been trying to store those values in a vector, because eventually, there will be several strings like this, and I'd like to keep them organized. I will also eventually be viewing or deleting the whole message, so I thought storing the values in a vector might be easy. Anyway, I just wanted to know if anyone else had any ideas that might simplify this process. Thanks!