27.04.2013, 20:51
You are using fremove correctly. Please verify that your directory is in fact "Users" and not "users" or "User". It must be exact.
Chances are, in the spot where the file was created you may be saving it to a different directory (probably something similar) as mentioned above. That's why when it goes to delete the file, it doesn't do anything because "Users" doesn't exist.
Otherwise, if you have the file opened and you have not closed it, you will not be able to delete the file. You need to use fclose in order to close the file.
Chances are, in the spot where the file was created you may be saving it to a different directory (probably something similar) as mentioned above. That's why when it goes to delete the file, it doesn't do anything because "Users" doesn't exist.
Otherwise, if you have the file opened and you have not closed it, you will not be able to delete the file. You need to use fclose in order to close the file.