Hi all,
Can any one tell me how to delete any file from a C++ code. I can do it with the help of the function 'system()', but is there any other way? :?: :?: :?:

int remove (const char *filename)

It's a C function for removing a file, declared in stdio.h.

Thanks a lot for this answer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.