So I am trying to write a function, in C, that will securely erase a file. Here is my general procedure:
- Open the file for reading and writing
- Overwrite the file a specified number of times with random data, flushing the file with flush() after each iteration
- Deleting the file using remove()
If a file is overwritten, say 10 times, in this manner will it be securely erased or not??
