| Close | Back |
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<dos.h>
#include<graphics.h>
#include<stdlib.h>
main()
{
union REGS ip,op;
char FileName[100];
printf("\nEnter the name of the file to be deleted:");
gets(FileName);
ip.h.ah=0x41;
ip.x.dx=FileName;
intdos(&ip,&op);
if(op.x.cflag==0)
printf("\nDeletion of file %s Successfull",FileName);
else
printf("\nSorry,The file %s could not be deleted",FileName);
getch();
}