Hi, I was wondering with the menu bar how to open, save and make a new file on the menu bar

case MENU_FILE_ID_OPEN:
{
  //something to open the file                   
} break;

i have no idea at all how to do this, i have searched the net but it just comes up with tons of "how to open and save files in microsoft visual studio" type of things.

thanks

Recommended Answers

All 2 Replies

Just use normal file i/o streams such as ifstream and ofstream. If you want to display the usual OpenFile dialog box that lets you select the file you want to open then call GetOpenFileName()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.