> Yes that was exactly that. > > I fixed the read part. > > But I'm wondering if should use nc_put with strlen+1 (with the \0' > character) or just strlen as before? > > If I use strlen+1 is it going to confuse non-C interfaces like Java? Here's advice from the C Users Guide about exactly that question: http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-c.html#Strings --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: BOE-466631 Department: Support netCDF Priority: Normal Status: Closed