Reposition file pointer to a saved location: how to use fsetpos
#include <stdio.h> int main () { FILE * file; fpos_t pos; file = fopen ("my.txt", "w"); fgetpos(file, &pos); fputs ("That is a line." ,file); fsetpos (file, &pos); fputs ("This", file); fclose (file); return 0; }