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

Home » Public Forums » archive » Open text files consecutively without knowing names
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Open text files consecutively without knowing names [message #85264] Fri, 19 July 2013 09:22 Go to previous message
morganlsilverman is currently offline  morganlsilverman
Messages: 46
Registered: February 2013
Member
Hello,

I have several folders containing ascii files in each. The filenames within those folders are a grouping of numbers and letters corresponding to year, day, and other instrument characteristics
(e.g 8358d47a.tps, 8358h41a.tps, 8358l35a.tps). Unfortunately there isn't a pattern or order to the filenames beyond the first couple digits which are connecting to the parent directory to easily open the files consecutively.

I want to open each file, read the data, then close and repeat on the next file. Is there a way to loop through the files in each directory without knowing specifically what the filenames are? I'm struggling with how to do this since.

Thank you. Sincerely,
Morgan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: SVDC did not converge
Next Topic: Help with IDLnetURL

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

Current Time: Wed Oct 08 20:02:10 PDT 2025

Total time taken to generate the page: 0.01997 seconds