[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: (BUG LISP) at MIT-ML
- To: (BUG LISP) at MIT-AI
- Subject:
- From: AOK@MIT-ML
- From: AOK@MIT-AI
- Date: Fri, 19 Aug 78 09:36:36 GMT
- Date: Fri, 19 Aug 78 07:23:23 GMT
- Ml: AOK;IORTN >, AND LOOK AT FWRITE FREAD FCLOSE FWRITE-OPEN FREAD-OPEN IN THE
- Original-date: 08/19/78 05:36:36 EDT
- Original-date: 08/19/78 03:23:23 EDT
- Re: PREVIOUSLY REPORTED BUG IN APPENDING. AFTYER EVEN MORE GRIEF I CAN GET IT TO
CODE:
(DEFUN FWRITE (S)
(COND ((NULL OUTFILES)
(SETQ OUTFILES (LIST (OPEN '((ML AOK) POSITN >) 'APPEND)))))
(PRINT S (CAR OUTFILES)))
RESULTS:
1. GARBAGE AT THE BEGINNING OF FILE - ABOUT 2 1/2 SCREENFULS OF ETC... FOLLOWED BY
2. MY NEW INPUT (INTENDED TO BE APPENDED)
3. ALL OLD DATA IN THE FILE IS GONE
4. AFTER THIS UGLY FILE IS CLOSED AND READ BACK IN I HAVE NO TROUBLE GETTING MY NEW
INPUT (APPARENTLY THE I/O SYSTEM KNOWS TO SKIP (SLOWLY) OVER THE 'S), BUT ALL MY OLD DATA
IS GONE.
5. PROGNOSIS - TERMINAL !!!!!