05-07-2016 12:40 PM - edited 05-07-2016 01:05 PM
@edjones93 wrote:...I have created a VI which will extract all the folder names (include file name) into a string array, ....
How is this different from the Path to array of strings function that has already been mentioned?
(Answer: Your code only works on windows, while "path to array of strings" is completely OS independent and thus highly preferred.)
05-07-2016 01:37 PM
Oh sorry, I didn't see that post, nor have I ever noticed that function node.
05-07-2016 01:42 PM
I agree, path to array of strings is not a very well know function. (However, spreadsheet string to array is useful to know.... :D)
05-07-2016 05:53 PM - edited 05-07-2016 05:54 PM
Spreadsheet string to array was an option I considered but you can't control the returned data from what I'm aware, is this correct? While you can control that you input the data as a string.
05-07-2016 06:05 PM
@edjones93 wrote:... but you can't control the returned data from what I'm aware,
Define "control"?
You define the output as a 1D array of strings by wiring the "array type" input, you define the field delimiter ("\" in this case) and you define the format of the data between the delimiters (%s in this case). What else do you want to control? Currently, it returns exactly the same as your own code. 😄
05-07-2016 06:12 PM
Too true, just tried it and you're right... Still, would be nice to know whether the original question has been answered. You can navigate the hierarchy of files with all the methodologies discussed and even further work through file structures using List Folders in the File I/O palette.