I am working on a management system project and want to clear the file before adding data to it. I am using this code as a reference. I have rewritten the code from the referenc