creating log file with rw+a then also contains i am sending to file are not appnded
fp = fopen ("/home/ivb/rohan/files/log/desc_log.txt", "rw+a");
printf("log is created. . .\n");
printf("error in creating log. . .\n");
1. when i run the code at first run it doest create file with "rw+a"
2. i have to go n change it to w+ mode n run the code again then file gets created.
3. "rw + a" mode gives file creation error if i run it first time
4. appending the data doesnt really occures
whre i am making the mistake please give suggstion
Thanks & Regards