FOPEN functions always return file pointer, so check !=0