   Hi, need some help figuring another way to save[Solved]
  Currently having a way to load and save hardcoded names and working well, but I cant nudge my head around having user to input map names,for the load system I've been trying to make a listbox listing all files with .bin inside Maps folder popping up on F6.and for the saving a popup dialog box when pressing F5The true problem Im having(ironicly) is getting input and to make sub windows and then cleaning them up when done.In the terrain header file. void SaveTerrain(char fileName[]); void LoadTerrain(char fileName[]);the functions in terrain.cpp________________________________________________________________void TERRAIN::SaveTerrain(char fileName[]){   try   { std::ofstream out(fileName, std::ios::binary); //Binary format out.close();   }}________________________________________________________________void TERRAIN::LoadTerrain(char fileName[]){   try   { std::ifstream in(fileName, std::ios::binary); //Binary format in.close();   }}the save calling functions in Main.cpp________________________________________________________________   else if(KEYDOWN(VK_F5))   {    SaveMap();    /* m_terrain.SaveTerrain("Maps/Map"); Sleep(1000);    */   }________________________________________________________________   else if(KEYDOWN(VK_F6))   {    LoadMap(); /* m_terrain.LoadTerrain("Maps/Map"); Sleep(1000); */   }also prepeared________________________________________________________________void SaveMap(){ m_terrain.SaveTerrain("Maps/Map"); Sleep(1000);}________________________________________________________________void LoadMap(){ m_terrain.LoadTerrain("Maps/Map"); Sleep(1000);}any tip or snippets?Any help would be apprectiated : )Don't mark threads 'solved' -- jpetrie[Edited by - Zervox on May 7, 2010 12:12:18 PM]