Can someone tell me how to delete all like .txt files in a folder in all .c files please and which header it needs.
Can someone tell me how to delete all like .txt files in a folder in all .c files please and which header it needs.
Probably OS dependent. The DeleteFile() API function in Windows will not accept wildcards, maybe some other OS's have an API function that does.
On a Windows system, log the files one at a time with the FindFirstFile() and FindNextFile() API functions, (which DO accept wildcards), and delete them as you go.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.