Good morning everyone,
I've been searching for Writing to existing file or Append to existing file, but I can't find any post regarding such.
So I have a question for you all.
I want to write the dwgname & dwgprefix to a file, so I have this:
(setq Note (open NotePath "W"))
(write-line dwgPref Note)
(write-line dwgDesc Note)
(setq Note (close Note))
Note: NotePath is the path and name of the text document to be written to (already preset in the code earlier).
So this will write to the document, but if it is run again, it overwrites what was previously there.
I need to append to the document so the first n postings to the document will not be overwritten.
Can someone show me the way of enlightenment ??
Thanks.