All my classes,for example an entity class was holding a member name of type char.
I was setting it with strncpy(); and writing to file with fwrite and reading with fread with no problems as the size was 64 I was able to pass it as a parameter to those functions.
Now I switch everything to c++ strings.And It became a problem to read the object names from files as the size of the string is not know.I had to first write the size of the string and then write the string using c_str and using the sizeofthe string again.This means more code to write just a object name.
I wonder if iostream makes any difference.ostream has read and write methods but they also take size as parameter so I guess i need to write the size out first too.
I guess this is something to deal with when using the string class.