I have created a very simple module that saves a file into a specific folder (CATARNS) with the format PRDDMM.doc eg PR1605.doc. I now want to do two things.

1. I want to save the file as HTM instead.
2. I want to create a module to check if a file already exists under the folder CataRNS with today's date, DDMM, if it does I want to create a file PR1605a.doc, if this already exists as well I want it to create a file PR1605b.doc and so on.

Can anyone help me please

Many thanks