give me examples of opening file in append mode in c
file handling
Collapse
X
-
Tags: None
-
Originally posted by sukanya007give me examples of opening file in append mode in c
Savage -
First of all open a file using the file pointer.
As I know if the file does not exist then after opening it in append mode it wil be created.
Lets take a look
main()
{
FILE *fp;
fp=fopen("testf ile.txt","a");//it will open file in append mode if not working use a+ //in place of a.
//Now file is opened
fclose(fp);
}Comment
Comment