Data reading [message #91588] |
Mon, 03 August 2015 20:36  |
joyrles1996
Messages: 27 Registered: August 2015
|
Junior Member |
|
|
I'm starting with IDL, wanted to know how many read txt files that are in a folder and combine them all in one file with the IDL?
thank you very much
|
|
|
|
Re: Data reading [message #91590 is a reply to message #91589] |
Tue, 04 August 2015 02:41  |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Tuesday, August 4, 2015 at 11:28:29 AM UTC+2, Nikola Vitas wrote:
> On Tuesday, August 4, 2015 at 4:36:08 AM UTC+1, Joyrles Fernandes wrote:
>> I'm starting with IDL, wanted to know how many read txt files that are in a folder and combine them all in one file with the IDL?
>>
>> thank you very much
>
> That'd be a good exercise for someone just starting. IDL has excellent and extensive help documentation. Many good tips you can find at www.idlcoyote.com
>
> Search for functions FILE_SEARCH, FILE_INFO, OPENR, READF, and check the examples in the code.
Hi,
I would say IDL "can" do that, but would not be my first choice. Linux and Win doe the job in a one liner:
See for instance:
http://unix.stackexchange.com/questions/3770/how-to-merge-al l-text-files-in-a-directory-into-one
http://superuser.com/questions/111825/any-command-line-or-ba tch-cmd-to-concatenate-multiple-files
Cheers,
Helder
PS: sorry for spoiling the "IDL" learning process, but I really think, that this should not be done in IDL... unless you use spawn of course!
|
|
|