newLISP Fan Club

Forum => Anything else we might add? => Topic started by: newdep on October 10, 2005, 12:20:47 PM

Title: 'save in append mode
Post by: newdep on October 10, 2005, 12:20:47 PM
Hi Lutz,



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

overwrites which is a little tricky..



Regards, Norman.
Title:
Post by: Lutz on October 10, 2005, 01:16:55 PM
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.