Discussion in 'C' started by shradha, Sep 21, 2010.
how can one devolop global recycle bin code in c?how it works?
A recycle bin for what exactly? Used memory? Or like the recycle bin in Windows?
If the latter, it requires that the OS delete file function is modified so that instead of permanently deleting a file, it instead moves the file to the recycle bin instead of deleting it. The function would also need to record the original location and filename so that the file can be recovered. Also if the recycle bin has a maximum size, as in Windows, it needs to keep track of when files were moved into the recycle bin so that it can permanently delete old stuff to make room for new. A new function to permanently delete a file would then need to be created.
Separate names with a comma.