Adding return values for fopen failures.