Re: Read several files into one big data array? [message #89510 is a reply to message #89509] |
Wed, 22 October 2014 14:55   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
lucesmm@gmail.com writes:
> I really don't care about the names of the columns, they are fixed for all the files. But when I referred to title, I meant the last 5 digits of the file's name, to be in a new column (first column). (i.e. FILE_00001.data -> extract the "00001" and storage it with the data in the first column.
Oh. Something like this, then:
locate_underscore = StrPos(filename, "_")
fileNumber = StrMid(filename, locate_underscore, locate_underscore+5)
> Also, my code is still not working, so I am curious if this will group the data from FILE_00001.dat with FILE_00002.data and so on?
I doubt it, but can't tell without some code that tries to do it. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|