I am facing problem in inserting EOF character at the end of the binary file. I read CTRL+Z for windows but it doesn't work.
First of all I want to ask that does fclose(SOME FILE POINTER) not automatically insert EOF at the end of file????
Below is the approx. code that i am writing, Kindly tell me whether it is correct or is there a better way to put EOF:
fp = fopen("book.lib","a");
book bk; //Book Structure
int add = 1;
while(add == 1)
printf("Enter 1 for adding book and 2 to quit!!");
Printf("Press CTRL+Z to quit!!!!");
else if(add == 1)
printf("Enter the name of book ");
printf("Enter the author ");