Capture any fgets results/errors