C: read binary file to memory, alter buffer, write buffer to file?

1) No. You do not need to loop in getFileBuffer since you read the entire file with fread . You also do not need to call fseek because every time you read from the file you will advance within the file stream automatically.

I haven't debugged your code, but it looks like by the time your loop completes, every element in buffer will contain the same value and it will be equal to whatever is the last byte in your file.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions