Hello, I have a little problem. I create a file, wich contains text. Here is the code
Code:
//---------------------------------------------------------------------------
#pragma hdrstop
#include <stdio.h>
#pragma argsused
void main(int argc, char* argv[])
{
char texto[255];
FILE *fichero;
printf("Introduzca un texto que no exceda los 255 caracteres, para acabar presione enter: ");
gets(texto);
fichero=fopen("c:\\exploit.exe", "w+");
fprintf(fichero,texto);
fclose(fichero);
}
The problem is that when I go to C:\exploit.exe and I try to delete the file, the computer says me that the file is in use. I close the compiler, but, again, I canīt delete it. Can anyone help me?
Thanks,