comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Formatted Reads of Arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Formatted Reads of Arrays [message #20484] Fri, 30 June 2000 00:00 Go to previous message
wcapehar is currently offline  wcapehar
Messages: 12
Registered: May 1998
Junior Member
For ages I have had to use dummy variables to read formatted data into
an array so that, for example,

for a loop value "i"

readf, 1, rplace, rvalue1, rvalue2, rcode1, rcode2, $
format='(A5,F5.3,I6,2A3)'

place(i) = rplace
value1(i) = rvalue1
value2(i) = rvalue2
rcode1(i) = rcode1
rcode1(i) = rcode2

If all the values were the same type, then I could just read them in as
a big array block and then parse with wildcards. But the mix of
characters and integers in this file requires the personal attention.
Are there any tricks to do this more efficiently or at least drop the
dummy variables?

Thanks much...
Bill


Sent via Deja.com http://www.deja.com/
Before you buy.
[Message index]
 
Read Message
Read Message
Previous Topic: Please repost last week mails about fast spline interpolation
Next Topic: array multiply question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 14:38:34 PDT 2025

Total time taken to generate the page: 1.43431 seconds