Soo i'm a little confuse about the fread/fwrite function ...
from what i understood in the videos, you need 4 input for those to work, let's use fread for the exemple
fread("place to store the data", size, qty, filename)
i have trouble understanding the difference between the size and the quantity ... in pset4 recover we need to store 512 package of 8bits into an array from file which give fread(arr, sizeof(BYTE), 512, file) and my code worked like that but i read a little more on this forum and i found some other code where it was fread(arr, 512, sizeof(BYTE), file) or even fread(arr, 512, 1, file) i tested all the variant in my code and they all work ... so which is the proper way to write the fread function ??? and why the 3 variations work ?
thank you very much ... hopefully my question is more clear than my understanding of fread/fwrite