how does rename actually work in c?

The exact mechanisms depend entirely on the OS and file system in use, but in general a file’s name is stored in a directory. So typically changing the name of a file involves modifying the name in the directory listing (or if moving the file, removing the directory entry and adding it elsewhere in the tree).

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top