binary_to_term

Gordon Beaton <>
Mon Jul 31 13:32:21 CEST 2000


On 28 Jul 2000 12:04:35 GMT, Ulf Ekström wrote:
> I  have a binary file produced by term_to_binary in 1995 (erl4.3.1).
> The problem is that I want to use the information in that file with
> the latest version of Erlang but binary_to_term can't read the
> representation
> used by the old term_to_binary.
> The function erlang:old_binary_to_term doesn't work either.
> 
> Does anybody know how to solve this problem?

According to Björn, the external format has not changed during the
history of OTP (although things have been added), so it is possible
that the file is corrupt. Can you decode it with erl4.3.1 (do you
still have that version available)?

/gordon

-- 
g o r d o n . b e a t o n @ e r i c s s o n . c o m
software architecture laboratory
ericsson research
stockholm, sweden



More information about the erlang-questions mailing list