I have a folder (C:\Files) with a bunch of .txt files in it. What i want is to first count how many files are in the folder (it will be constantly changing) and from that count make a dynamic array that will hold that amount of files. Then i want to fill the array with ONLY the file name WITHOUT the extension (ie if the file is called foo.txt i want the array to hold foo; NOT foo.txt)
I think i need to use the Count property of the files collection in order to see how many files i have but i dont know the syntax.
I also dont know the exact syntax to make a dynamic array... maybe ReDim test(5) or something?
anyways please help
I think i need to use the Count property of the files collection in order to see how many files i have but i dont know the syntax.
I also dont know the exact syntax to make a dynamic array... maybe ReDim test(5) or something?
anyways please help