file:read_file in R7B

Martin Bjorklund <>
Thu Nov 16 14:42:29 CET 2000

Klacke <> wrote:
> It's because the shell keeps a histrory list of old
> values. These values are accessible trough i.e v(-3) to get
> 3 values back. Thus the binary returned in 'Bin' above
> is kept in the history list, and thus not freed for a while.
> Killing the shell with exit() will make it drop the the history list.

> >  {ok, Bin} = file:read_file("/usr/share/dict/words"), z.

... and in this case it's smaller because the shell doesn't have to
print the binary.


More information about the erlang-questions mailing list