I´we been looking up fread() man page and it seems like I can put restrictions in the argument.
I haven´t found out exactly how that should be done however, in a proper syntax.
At the moment I´m using this statement to read 4 blocks of 4 bytes each to the array: file.
Is it possible to put a restriction before fp to only read binary data and no text? And what effect would it have to put the restriction before file?Code:fread(file, 4, 4, fp);