Read all files from a directory

xaxo
Posts: 1
Joined: 2008-08-08
Location: United States

Hi,

I am using Igor on windows and would like to know how can I read all files from a directory on my harddisk and is it possible at all. I don't seem to find anything about this in the help, there are only functions about reading directory content from igor's internal structures.

Thanks


andyfaff
Posts: 60
Joined: 2007-09-12
Location: Australia

The function indexeddir gives you a list of all the directories that sit below a path (to create a path use NewPath).
The function indexedfile gives you a list of all the files that sit on a path.

Then all you need to do is iterate through the list of files and do whatever you want to them.


Posts: 93
Joined: 2007-06-21
Location: United States

For an example, execute this:

DisplayHelpTopic "Loading Waves Using Igor Procedures"

This leads to a section called Loading All of the Files in a Folder.


Back to top