<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Help sought please,</DIV>
<DIV>I have a file generate by a perl script, containing only the current date, written as, e.g.: 16/ 10/ 2008.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am trying to read from this file in my grads script. Here is the script I wrote:</DIV>
<DIV>read(date_file.txt)</DIV>
<DIV>&nbsp;</DIV>
<DIV>say sublin(result,2)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Day=sublin(result,2)<BR>Month=sublin(result,3)<BR>Year=sublin(result,4)</DIV>
<DIV>&nbsp;</DIV>
<DIV>'draw title Valid on:&nbsp; 'Day' 'Month' 'Year</DIV>
<DIV>&nbsp;</DIV>
<DIV>According to the Grads documentation, the first record of this read statement is a return error, and I can recover the records from 2 and repeatedly reading for subsequent records.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I do not get beyond the first line of my script, geeting error 1, which is an open error.</DIV>
<DIV>I have not seem a single script which reads from a file.</DIV>
<DIV>Does the read function actually work, or where is my error?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Assistance appreciated</DIV>
<DIV>Zilore Mumba<BR></DIV></td></tr></table><br>