Re: Help with IDL STructure with variable string parameters to store [message #1542] |
Mon, 29 November 1993 04:14 |
ralfu
Messages: 7 Registered: November 1993
|
Junior Member |
|
|
In article <1993Nov26.150338.2503@cs.uah.edu>, vchagant@cs.uah.edu (Venkata Chaganti) writes:
|> % READU: End of file encountered. Unit: 1
|> File: test.dat
|> % Execution halted at XT_PRO <test.pro( 24)> (READU).
|> % Called from $MAIN$ .
|> What is the error I am doing.
|> If some one could help me , i will appriciate
If you make IDL reading into the structure test you made, it wants
to read as much characters as you defined for test. As you wrote
fewer char's to the file, reading afterwards has to give an EOF error.
In your example, if you define
test = {name:'xxxxx',$
number:'xxxxxx',$
city:'xxxxxxxxxx'}
there won't be any error.
--
Ralf Utermann
____________________________________________________________ _________
University of Augsburg (Germany)
Institute of Physics - Theoretical PhysicsI & Computer Center
Memmingerstr.6 "Speaking for me and nobody else"
D-86135 Augsburg Tel.: +49 +821/5977-235
SMTP: Utermann@Uni-Augsburg.DE Fax : 5977-225
|
|
|