Wolfgang Jenkner wrote:
>Doug Stewart writes:
>
>
>
>>Now the close works but there is nothing in the file when I run a
>>batch file with this in it:
>>
>>DISPLAY2D:FALSE;
>>
>>WRITEFILE("GG.TXT");
>>
>>
>
>Try `appendfile' instead of `writefile' (`writefile' relies on the
>underlying lisp's DRIBBLE while `appendfile' performs its own stream
>magic).
>
>Wolfgang
>
>
I tried appendfile and it is no better.:-(
here is the 112.mac
DISPLAY2D:FALSE;
appendfile("g8.txt");
ll:LAPLACE(COSH(A*T),T,S);
stringout("g5.txt",a= ll);
DISPLAY2D:TRUE;
closefile();
Here is the run sesion
(%i4) batch("ll2.mac");
batching #pC:/Documents and Settings/doug/maxima/ll2.mac
(%i5) DISPLAY2D : FALSE
(%o5) FALSE
(%i6) APPENDFILE("g8.txt")
/* Starts dribbling to g8.txt (2005/5/8, 15:51:27).*/
(%o6) DONE
(%i7) ll:LAPLACE(COSH(A*T),T,S)
(%o7) S/(S^2-A^2)
(%i8) STRINGOUT("g5.txt",A = ll)
(%o8) ?C\:\/Documents\ and\ Settings\/doug\/Desktop\/g5\.txt
(%i9) DISPLAY2D:TRUE
(%o9) TRUE
(%i10) CLOSEFILE()
/*Finished dribbling to g8.txt.*/
(%o10) FALSE
(%i11)
g8.txt is blank.
g5.txt has
A = S/(S^2-A^2);
This is what I wanted.
thanks
Doug Stewart