CompuServe Messages

LISP EMPTY FILES

    29-Mar-88 16:38:15
Sb: LISP EMPTY FILES
Fm: Michael J. Enos 73417,344
To: SYSOP
Dear Jamie, Brad I'm still having that trouble with the AutoLISP writing a file with "0" bytes. I think I have a clue. After AutoLISP reaches this point, it can only create files with 0 bytes. For example, I have a file called D:\1.lsp that contains the following routine: (defun doit () (setq mi (open "1.1" "w")) (write-line "AAAAAAAAAAAA" mi) (write-line "BBBBBBBBBBBB" mi) (close mi) ) Normally when I do a (load "D:/1") AutoCAD responds with: DOIT (which is correct) but after AutoLISP starts writing 0 byte files, when I do a (load "D:/1") instead of AutoCAD responding DOIT, it gives me a: "D:/1" (including the quotes!) Why is it doing this? I thought it might be that the file is not getting closed. But I try to manually close it, and AutoLISP says "File not open", so it can't be that. AutoLISP creates the file ok, but something happens that from that point on it only creates empty files. The program OPEN.LSP works fine most of the time, but once AutoLISP starts creating those 0 byte files, OPEN.LSP won't work either. I don't think that its the hardware. Could it be DOS files? Anymore advice??? —– Mike