To save changes to a file:
Select File>Save
For a new file, File>Save displays the Save As dialog box so you can name the file.
To create another copy of the file:
Select File>Save As
If you try to close the editor without saving, it prompts you to save the changes.