i have to create a copy of fits image(a binary file).i can read that original file using some other program.i have the following code:
now my problem is that the original file alignment.raw is of 2.07MB and the newalignment.raw which i suppose is the copy of original file is just 22.5KB.
//unsigned long filesize(FILE *fs,*ft);
perror("cannot open source file");
c = getc (fs);
// while (c != EOF);
so can you plz tell me what is the problem with my code?
is there any specified size limit for copy of any file?
what is the difference between EOF and feof command?