<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> </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> </DIV>
<DIV>say sublin(result,2)</DIV>
<DIV> </DIV>
<DIV>Day=sublin(result,2)<BR>Month=sublin(result,3)<BR>Year=sublin(result,4)</DIV>
<DIV> </DIV>
<DIV>'draw title Valid on: 'Day' 'Month' 'Year</DIV>
<DIV> </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> </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> </DIV>
<DIV>Assistance appreciated</DIV>
<DIV>Zilore Mumba<BR></DIV></td></tr></table><br>