I am heandling right now recover side by side by example of resize and copy.
I have some big problem that I do not understand with fread function:
here is the code:
//start the process fread(infile, 1, 512, infile); //read the file until we will reach not 512 byte puzzle while (fread(infile, 1, 512, infile) == 512)
Does it work as I am 'doing' it? I think no but to be honest i tryed to read and read about it and I cannot get any idea - I have also watched code of other ppl and they do define the buffer but I am not able to wrap my head around that.
Can somebody help me with some advice?