e.g.. this is how i insert data into my map..

typedef map<string, string> MapFunction;
MapFunction dbase;
dbase.insert(MapFunction::value_type("Helen", "Female67"));
dbase.insert(MapFunction::value_type("Mark", "niceguy"));
dbase.insert(MapFunction::value_type("Rosie", "Helens_sis"));

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


I would much appreciate it if someone can help me