text output



Thx.
It works.
Now I try to save 3 chars : dri to the file.

?print(dri) saves $DRI

?print("dri") saves "dri"

?print('dri) saves also $DRI.

Can I do it ?

Regards

Adam
	

> Adam Majewski wrote:
>> Hi,
>>
>> I have a list of integers :
>> a: [1,0,0]
>>
>> ...
>>   
>>   
> Try
> 
> with_stdout("tmp.txt", for i:1 thru length(a) do ?print(i))
> 
> where you are using the underlying  lisp program 'print'.
> 
> There are other ways of doing formatted printing from Maxima but this is
> pretty simple.