Home »
Public Forums »
archive »
Read these data in structure
Read these data in structure [message #71802] |
Wed, 21 July 2010 06:33 |
a.mozafari1211
Messages: 16 Registered: February 2009
|
Junior Member |
|
|
Folks
I have a question:
I have some *.dat files (it is changing each time and I do not know
how many I have) and also rows and columns of *.dat files are
different. I want to read these data in structure. I tried something
like this:
pro read_several_files
path="d:\p\"
List = findfile(path+"*.dat")
no=N_ELEMENTS(List)
info={info:ptr_new(/allocate_heap)}
for i = 0, no-1 do info.info=read_ascii(list[i])
……
What I need is at the final I get structure that I can access my data.
Data1=…
Data2=….
…..
Any Help?
|
|
|
Current Time: Sat Oct 11 18:13:23 PDT 2025
Total time taken to generate the page: 1.88634 seconds