'save in append mode

Started by newdep, October 10, 2005, 12:20:47 PM

Previous topic - Next topic

newdep

Hi Lutz,



Is it possible to use 'save in append mode? currently 'save

overwrites which is a little tricky..



Regards, Norman.
-- (define? (Cornflakes))

Lutz

#1
You could use 'source', which since 8.6.1 works like 'save' but returns a string. That string than you could write to a file opened in append mode.



Or you could at first collect all the symbols and contexts you want to save and than do 'save' once, because 'save' can take multiple symbols/contexts.



Lutz



ps: for v.8.8 I have 'append-file' on my to-do list, which works like 'write-file' but appends. Then it will be even shorter.