D'oh!
In which case, you just need to reverse your puts and gets. I'm sure it will all work out all right in the end.
More seriously, the suggestion of using a file (with locking and fixed length records) is a good one. That should be fairly straightforward.
In reply to Re^3: Persistent stack implementation (s/L/F/)
by jbert
in thread Persistent stack implementation
by jeteve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |