Relative Content

Tag Archive for cimagepngfread

Why is Fread, Only Working with Certain Files?

I’ve starting tinkering around with the Fread/Fwrite functions within C. I’m basically working on a program that manipulates data on a CSV file for my month end accounting task. For my CSV files, the Fread function appears to (generally) work properly. I can effectively stream the CSV file onto the screen etc. Occasionally, I get a read error on certain bytes of data fread()!=counted/buffered item and tosses an error.