So there needs to be a conditional statement.
The conditional statement is used to verify that the file exists and can be opened for appending before attempting to write to the file. Note that the absence of the conditional expression wasn't the reason that your code was failing - this was because in your code, you are attempting to use the
close function on a filepath string, not a file descriptor (as returned by the
open function); you were also missing quotation marks around the filename in the
findfile expression.
One last question, since my lisp file is located in a different directory, why does it default to c:/users/[username]/My Documents/..?
I assumed it would write to the file that's specified in the support directory.
findfile will always check the working directory before the support paths.