Use fwrite since the strings are not NULL-terminated