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

Home » Public Forums » archive » READ ARRAY and extract the values
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: READ ARRAY and extract the values [message #93130 is a reply to message #93129] Sat, 30 April 2016 23:56 Go to previous messageGo to previous message
Sapna Mishra is currently offline  Sapna Mishra
Messages: 66
Registered: December 2015
Member
readcol,"data.dat",obj,value

for i=0; n_elements(obj)-1 begin
if obj(i)='obj1'
forprint,obj(i),value(i),text='obj1.dat',F='(A,1x,F)'
else
forprint,obj(i),value(i),text='obj2.dat',F='(A,1x,F)'

endfor

Then you can store the value of files obj1.dat and obj2.dat in different array using readcol or openwr.
This may be the easiest way, else there might be so many other ways which others can help....

Thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there a way to tell if program is running within the IDLDE?
Next Topic: READ array from a file

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

Current Time: Fri Oct 17 23:50:21 PDT 2025

Total time taken to generate the page: 1.36205 seconds