<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Dear Ricardo,<BR> <BR>I have attached my script to the email. All parameters are appeared in terminal window. When I added the <BR>res=write('filename.txt',newvar,append)<br>'quit'<br> to the end of the script, I should replace r2,r3,r4,r5,f2,f3,f4,f5 with "newvar" but it dosen't work correctly. I mean after running the script in 'filename.text' I just see r1 and after running again I see one another r1 is placed beside the previous one!<BR> <BR>What should I do? Can I write those number in an excel file?<BR> <BR>Regards,<BR> <BR>T.<br><br><br>> To: GrADS Users Forum <gradsusr@gradsusr.org><br>> Message-ID: <20130212154325.M14837@model.iag.usp.br><br>> Content-Type: text/plain; charset="iso-8859-1"<br>> <br>> Dear T.,<br>> <br>> test each variable value after capturing it with "subwrd(result,4)".<br>> <br>> If the values appear on the terminal, they have to appear in the filename.txt too.<br>> <br>> Anyway, if you still have problems with this, please, send me a copy of your script. Sometimes it is only a small detail.<br>> <br>> Regards,<br>> Ricardo<br>> <br>> On Mon, 11 Feb 2013 18:32:52 +0000, T. haghroosta wrote<br>> > Dear Ricardo,<br>> > ?<br>> > It works, but I have 10 oputputs and I tried your suggestion in this way:<br>> > ?<br>> > res=write('filename.txt', r1, r2, r3, r4, r5, f1, f2, f3 ,f4 ,f5 ,append)<br>> > ?<br>> > Which I used for all outputs the "subwrd(result,4)". The outputs are shown in the window, but the txt file just shows the r1 and f1!? What is the problem?<br>> > ?<br>> > Regards,<br>> > ?<br>> > T.<BR>                                            </div></body>
</html>