standard c lib function to rename files? (djgpp)

Started by
1 comment, last by Afterlife 22 years, 4 months ago
Is there such function or do I have to open the file save it with another name and then delete the old file? In case I have to do the latter one, how do you delete a file?
------------------------------If there be no heaven,may there atleast be a hell.-------------------------------Afterlife-
Advertisement
There are functions "rename" and "remove" declared in stdio.h for renaming and deleting files.

int remove(const char *filename);

int rename(const char *old, const char *new);
Thanks! Now I don''t have to rename 100 mis-spelled ace files manually
------------------------------If there be no heaven,may there atleast be a hell.-------------------------------Afterlife-

This topic is closed to new replies.

Advertisement