"Malcolm McLean" Thanks for any advice. >> I don't know about Windows specifically but generally you need to close the file or the attempted deletion will fail. > system("del C:\\path\\to\\file"); > will delete. To keep this semi-on-topic, standard C provides the remove() function. However the results are "implementation defined" if the file is open, so ...