NotebookSave[notebook] saves the notebook in a file whose name is given by the notebook object notebook.
NotebookSave writes out the Mathematica expression corresponding to the notebook, together with Mathematica comments which make it easier for the front end to read the notebook in again.
NotebookSave overwrites file without warning if it exists.