added distinction between fread/fwrite and load/save in datum function set