Hi,
I'm trying to read an ASCII file using a structure as follows:
openr, 1, asciifile.txt
nrows=70
template={a:' ', mm:0, dd:0, hr:0, mn:0, sc:0}
data=replicate(template,nrows)
readf, 1, data
close, 1
The problem is that all five fields (a, mm, dd, hr, mn, sc) get dumped into data.a. Is there a simple way to read structures when the first field is a string?
Thanks
|