[Maxima] renaming files from within maxima
Robert Dodier
robert.dodier at gmail.com
Sun Jul 8 21:07:32 CDT 2007
On 7/8/07, sen1 at math.msu.edu <sen1 at math.msu.edu> wrote:
> File-error in function LISP::FD-OPEN: Error opening #P"file_out",
> File exists.
> I am using the following for output:
>
> s: openw("file_out");
>
> If "file_out" exists, then it complains and produces an error message.
Hmm. Not sure what's going on here. The function openw is just:
(defun $openw (file)
(open
(l-string file)
:direction :output
:if-exists :supersede
:if-does-not-exist :create))
So if the file exists, it should be silently clobbered.
It is possible the definition of openw in your installation is different.
You might try the above definition instead, if so.
The behavior you reported might also be a bug in the Lisp implementation.
What Lisp version are you using? (And what Maxima version?)
best
Robert
More information about the Maxima
mailing list