The mode parameter for fopen is "r", not "R". There is little point in seeking to the end of the file end then reading a block of data. Only look at data actually read, i.e. use the return value of fread.
The mode parameter for fopen is "r", not "R".
There is little point in seeking to the end of the file end then
reading a block of data.
Only look at data actually read, i.e. use the return value of fread.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb