I want to read a file from a specified location. I have set a file pointer to the particular location (say 400). Now I am running a while loop till end of the file, and I am reading it line by line using fgets. But fgets reads the file from starting, and not from the specified location.
fsetpos(src,&pp);
while(!feof(src)) {
     fgets(cpy_buff,sizeof(cpy_buff),src);
     buffsize=strlen(cpy_buff);
     fwrite(cpy_buff, 1,buffsize,dst);
     memset(cpy_buff, 0, sizeof(cpy_buff));
}
 
    