[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
file output bug?
- To: firstname.lastname@example.org
- Subject: file output bug?
- From: email@example.com (Richard D Ferrante)
- Date: Wed, 15 Jan 92 21:33:34 -0500
I don't know if this is the appropriate forum for bug reports but I
seem to have found a bug in MCL2.0b1.
When I overwrite an existing file with a shorter one, a portion of the
previous file MAY remain at the end of the new file.
(with-open-file (out-stream hist-file
:direction :output :if-exists
(format out-stream "HISTOGRAM DATA Mean ~a std ~a total samples
~a" mean std samples)
(loop for i from 0 below *bin-count*
(format out-stream "~% ~a, ~a" i (aref *bin-array* i) )))
Changing *bin-count* from 400 to 100 resuted in a file of 134 samples
Deleting the old file (from the finder) eliminated the problem.
Possibly useful information:
Quantum PD210S Drive, 512bytes/sector