I have the following snippet of C code:
#include <stdio.h>
void main(){
int a = 1308901095;
FILE *fp;
fp = fopen("file", "wb");
fwrite(&a, sizeof(int), 1, fp);
fclose(fp);
printf("Done\n");
}
This will write the "a" integer in file "file", in binary form.
How I can read this number in Python?