read text

lorna nayagam lorna_arn at YAHOO.COM
Thu Dec 14 14:54:20 EST 2006


hello all,
i tried the method told by u poeple but got the
following problem, when i did the following script.

**********************
***     script    ****
**********************

flag=1
i=1
while(flag!=2)
    file = read(tmp.dat)
    line = sublin(file,2)
    x.i = subwrd(line,1)
    flag = sublin(file,1)
    flag = subwrd(flag,1)
    i=i+1
endwhile

'open sst.ctl'

sxy=0
n=1
while(n<=600)
'set t 'n''
'define y'n'=sst(t='n')'
'define sxy=sxy+x.n*y'n''
n=n+1
endwhile

*****************************
**         error           **
*****************************

Syntax error: Bad file number for variable x
  Error ocurred at column 5
DEFINE error:  Invalid expression.
Segmentation fault


i could not understand why this happen. Thanks for
your help and time.

Ms. Lorna R. Nayagam,
Junior Research Fellow,
Department of Atmospheric Sciences,
Cochin University of Science and Technology,
Finearts Avenue, Cochin 682016




____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com



More information about the gradsusr mailing list