unarchive
-
function
-
new in 1.70
-
• Added new archive() and unarchive() functions which can be used to produce an archival text representation of any SenseTalk value and to efficiently restore the equivalent value from such an archive. The archive format spreads list values and property-list properties across multiple lines, making it more human-readable than the format produced by the standardFormat function (which is always on a single line), and the unarchive function is more efficient than the value function at reading it again (although value() can also be used to restore a value from the archive format).
-
Examples: +
put archive of myComplexDataStructure into file "/tmp/archive.txt"
put unarchive of file "/tmp/archive.txt" into restoredDataStructure -
Related: archive