LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i open the directory/folder and read all the files inside it in order and then close it?

How can i open the directory/folder and read all the files inside it in order and then close it? any example would be nice.
thanks
Message 1 of 2
(2,738 Views)
In the File I/O>>Advanced File Functions Palette is a function named "List directory". This function will give you two arrays. One contains the names of all subdirectories the other the names of all files. If you want to sort them by name use the array sort function. If you want to sort them by another attribute use the File/Directory Info function to get more data. Use a cluster which contains the attribut to sort and the original index of the name. Then sort this array.
Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 2 of 2
(2,738 Views)