in reply to How to write file menu

You might want to a) tell us what GUI library you are using, and b) tell us what you expect your 'new', 'open', 'save', and 'save as' functions to do. You do realise of course that you will need to write those functions, they are likely to be specific to your app, and if your question is "How do I trigger a function from a menu option", you should probably state that explicitly rather than expecting us to read your mind.