EmbLogic's Blog

Program to delete a file using file handling in c

RCS file: x.c,v
Working file: x.c
raghav: 1.5
access list:
keyword substitution: kv
total revisions: 5;    selected revisions: 5
description:
Program to delete any file using file handling in c

With function remove() we can delete/remove any file from the file system . remove function takes argument as path of the file . and on success it returns 0.

—————————-
revision 1.5    locked by: raghav;
date: 2014/02/16 13:50:15;  author: raghav;  state: Exp;  lines: +1 -0
remove function returns 0 on sucess .
—————————-
revision 1.4
date: 2014/02/16 13:48:28;  author: raghav;  state: Exp;  lines: +1 -1
use of remove function to remove the file by writing the path of the file which we want to delete
—————————-
revision 1.3
date: 2014/02/16 13:47:46;  author: raghav;  state: Exp;  lines: +1 -1
input the name of file which we want to delete using gets function
—————————-
revision 1.2
date: 2014/02/16 13:46:43;  author: raghav;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2014/02/16 13:46:14;  author: raghav;  state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>