FIXED: fwrite() syntax takes file pointer first