If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

how can i then loop through the dbase map and write the entries to c:\dbase.txt?

i know for text writing, we use #include <iostream>, but im unsure as to how we loop through the map, and get each entry in the map and write it to the text file, so after the loop is done, the dbase.txt should be like this

You want to read this article about maps:http://www.devx.com/cplus/10MinuteSolution/21929
In short, you have to use an iterator initialized to MapFunction::begin(), and then increment it until you reach end(). Then use the *it->first, *it->second to access the key and the associated value (i.e., the first and second strings) in each iteration.