I require to add a string before 45byte in an existing file. I tried using fseek as bellow.
int main() { FILE *fp; char str[] = "test"; fp ...
I am trying to insert some data into the middle of a file. I have opened the file in append mode as:
file = fopen(msg->header.filename, "ab");
I wish to open a file using the "a+b" mode, i.e. if it does not exist it is created automatically, but if it does I don't want to overwrite it. I ...