You can try with this example after modification for writing into text file.<div><br></div><div><br></div><div><div>'reinit'</div><div>'open sample.ctl'</div><div>tt=1</div><div>while (tt<=13)</div><div>
'set lat 5'</div><div>'set lon 102'</div><div>'set t 'tt</div><div>'d variable'</div><div>te=subwrd(result,4)</div><div>w=write('test.dat',te)</div><div>tt=tt+1</div><div>endwhile</div>
<div><br></div><div><br></div><div>Best of Luck........</div><br><div class="gmail_quote"><br></div><div><br></div>-- <br>Sincerely<br>***********************************************<br>Jayakrishnan.P.R<br>CSIR-Senior Research Fellow<br>
Department of Atmospheric Sciences<br>Cochin University of Science and Technology (CUSAT), Cochin-682 016<br>Kerala, India.<br>Mob: 09895417565<br><br>***********************************************<br>
</div>