I am somewhat new to C and wanted to know how to implement a program to delete temp files. I have been unsuccessful in all my attempts. What am I doing wrong? ( I have included the appropriate headers)

Here is a sample of the operation i am trying to perform:

remove("C:\tempfile.tmp")

My syntax must be wrong!

Any help appreciated.