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

Home » Public Forums » archive » Data reading
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Data reading [message #91588] Mon, 03 August 2015 20:36 Go to next message
joyrles1996 is currently offline  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 #91589 is a reply to message #91588] Tue, 04 August 2015 02:28 Go to previous messageGo to next message
Nikola is currently offline  Nikola
Messages: 53
Registered: November 2009
Member
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.
Re: Data reading [message #91590 is a reply to message #91589] Tue, 04 August 2015 02:41 Go to previous message
Helder Marchetto is currently offline  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!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Colorbar Formatting Issue with New IDL 8.4 Graphics
Next Topic: Error opening NetCDF - file

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

Current Time: Wed Oct 08 14:19:06 PDT 2025

Total time taken to generate the page: 0.00229 seconds