05-27-2011 08:54 AM
Hi All,
I have a large number of files that I need to pull the data from and stitch it together, I have an idea of how I can do this but the "List Folder.vi" that I was intending to use returns the filenames alphabetically giving me an array of file names in the following format:
1-xxxx, 10-xxx, 100-xxx, 2-xxxx, 20-xxx and so on.
I can't quite get my head around how I can re-sort the array so that irrelevent of the number of files in the folder I always get the array in numerical order.
Any help?!
Cheers,
Dom
Solved! Go to Solution.
05-27-2011 08:59 AM
Hi Dom,
something like shown in the attached image should work for you.
Mike
05-27-2011 09:11 AM
Cheers for that,
I am not going to lie though the input string you used looks basically a bit like magic to me!!! Can you show me how I would modify it to take care of files using the following naming system:
1-ER-Data
1-SS-Data
1-SS-GPSData
1-SS-UTCTime
Many thanks.
Dom
05-27-2011 09:16 AM
Actually I should have just tried what you put up before asking!!!
Thanks, it works 🙂
Any chance you can explain to me how it works? Particularly why you input the magical numbers text string you did!!!
Cheers,
Dom
05-27-2011 09:23 AM
Hi Dom,
the "magic" string cuts the filename into extension and name without extension.
Mike