Checking that fread *actually* succeeds, fix the warning bellow when compiling with -O1, -O2 or -O3.
"warning: ignoring return value of 'fread', declared with attribute warn_unused_result"
Merge pull request #8 from sylvain-miermont/master

Warning when compiling with -O2