Need help with script please

I have to write the following script but i dont know how to go about it.

Check the spelling of any specified file and allow the user to edit the file if necessary

I think the following

:!spell % > %.sp
:e %.sp
:e#

is some kind of code for checking the spelling of a file but im not sure.

Could somebody help please?

Thanks in Advance.

From our rules:

(6) Do not post classroom or homework problems.