X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 09 Dec 2014 03:26 PM by  anon
reading structure if first field is a string
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
09 Dec 2014 03:26 PM
    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
    You are not authorized to post a reply.