18 Aug
2005
18 Aug
'05
5:22 p.m.
You could do the following: a) serialize your gigantic character array. b) For each pointer you want to serialize serialize the displacement from the front of your array save( ?; // save to huge array using binary object unsigned int disp; disp = A - file.ptr; ar << disp; disp = B - file.ptr; ... } load( ?; // load huge array using binary object unsigned integer disp; ar >> disp a = file.ptr + disp; ar >> disp a = file.ptr + disp; ... } Good Luck Robert Ramey