If it's an XML file, why not use an XML library?
There are several around.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
>>one person i talked to mentioned read the file as strings and tokenize the data is this a good way to do it?
If the file is ordered as posted it wouldn't be that hard to create a class modeled around the information for each customer and to create a file reader to extract each line from the file as a string, modify it if needed (for example, convert the string extracted to a numerical value where desired) and place it in an appropriate member variable, storing each object as extracted in a container that could then be searched using specific criteria such as a specific city or in a range of specific zip codes, etc.
Lerner
Nearly a Posting Maven
2,382 posts since Jul 2005
Reputation Points: 739
Solved Threads: 396
Use getline() and a loop.
After that, look up the various methods in std::string.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
can anyone give me some hints on this im having issues
thanks
Biggest issue is not reading the rules and posting any information at all about what those issues are. We can answer specific questions, but if all you're going to do is talk in generalities, the only help we can give is writing it for you.
WaltP
Posting Sage w/ dash of thyme
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
So why have you waited until now to say "due at midnight!"?
It's been 3 DAYS since your last post. If you'd bothered to post your latest effort on a daily basis, we could have helped you easily.
But no, it's "an emergency" and you haven't even shown us what you've been doing.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953