So I'm not quite sure how to use fread. I have a binary in little-endian that I need to convert to big-endian, and I don't know how to read the file. Here is what I still have:
FILE *in_file=fopen(filename, "rb");
char buffer[4];
while(in_file!=EOF){
fread(buffer, 4, 1, in_file);
}
I haven’t written anything yet, but I just don’t know how to get the so-called “progress”, so to speak. Any help would be appreciated.
source
share