Suggestions on pattern to dump a data structure to a file
If we have a data structure which we will need to output to a file and we
don't know in advance which or how many file formats we will need to
support, what's the best design pattern to implement the routines to dump
the data to a file?
Thanks in advance,
Rui Maciel
.
Relevant Pages
- Re: Field missing from a program dump
... The data structure I mentioned was only one of dozens of program fields, ... All of the missing items were valid and had normal data in them up to the ... The array index field was not in the dump and yet the array for which the ... (comp.sys.ibm.as400.misc) - about file writing out
... Got a file write-out question. ... In the middle of this program, I want to dump about ... can reuse these variables/structures by fread them. ... build a big data structure, and store all variables into this big ... (comp.unix.programmer) - Re: Field missing from a program dump
... surprise there. ... fields and data structures are missing from the dump. ... I can't seem to see any pattern to which items are missing from the dump. ... the following data structure has data (I'm viewing it a debug ... (comp.sys.ibm.as400.misc) - how to read dynamic data structures from the kernel (was Re: reading routing table)
... The interface problem, or how to pull bits from the kernel, is so ... What we'd need is some internal representation of the data structure ... Usually the "reason" for things like this is that no one has written the ... although doing it via an interated dump rather than a simple dump operation ... (freebsd-net) - Re: about file writing out
... In the middle of this program, I want to dump about ... 50 variables and structures into files using fwrite. ... can reuse these variables/structures by fread them. ... build a big data structure, and store all variables into this big ... (comp.unix.programmer) |
|