2 ms·
What method would you use to serialize data structures into a format that is both easily read and written by both a computer and a human?
by Sohcahtoa82 7y ago
What method would you use to serialize data structures into a format that is both easily read and written by both a computer and a human?
- enriquto 7y agoIn the very rare cases that you really need to serialize complicated data structures, something like s-expressions or (gasp) json, or even a memory dump is perfectly appropriate. However, most of the times your data structures should be lists of numbers or lists of strings. For those, you do not really need a "format", you can simply print and scan them from a text file.