I created a program to encrypt/decrypt files. The problem is, it creates a new file for the encryption program.
Now I want to remove the unencrypted file.
I tried:
But it doesn't work. Is there a way to remove a file when you're using a variable as the filename?Code:std::remove(d.filename);