Hi all,
I am analysing a test file which documents auctions in World of
Warcraft. Its about 30MB and 500,000 lines of text.
Right now, I open the file and read it into a vector>string>. I chose
this becasue I thought it would be easier to navigate. Is there any
benefit to using ifstream instead?
When I analyse the data, I end up with quite a few tables which only
comprise of a key and a data item. For example "6661:0:0|Recipe:
Savory Deviate Delight" where "6661:0:0" is the key and "Recipe: Savory
Deviate Delight" is the value. The vector>stringis not likely to go
over 5000 in size, its entries are never changed though it can be added
to. Again I am storing these in vector>string>. Is that the best
option?
In choosing options, I am assuming that a user who palys World of
Warcraft has plenty of RAM and processing power. But if there are
benefts in terms of not using too much RAM or CPU power to an
alternative approach, I'd like to know as the main objective is to
learn C++ and the STL.
Thanks.
Patrick