Use the NC_STRING type to store arrays of strings. Read and write them with nc_get_vara()/nc_put_vara().