fscanf (you'd probably switch this to sscanf due to the FILE comment above) has much more overhead than strtol.
If you want to cover this case off, I'd be amenable to a pull request that handles the various error scenarios.