fill IN ARRAY A FILE NAME IN DIR
-
- PlatinumLounger
- Posts: 4362
- Joined: 26 Apr 2010, 17:36
fill IN ARRAY A FILE NAME IN DIR
Possible to fill an array with a sorted file in dir, by name of state?
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78545
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: fill IN ARRAY A FILE NAME IN DIR
Loop through the folder and fill an array with the file names.
In the loop, also extract the country name and fill a second array with the country names.
Then, sort the country name array in ascending order and sort the file name array at the same time.
In the loop, also extract the country name and fill a second array with the country names.
Then, sort the country name array in ascending order and sort the file name array at the same time.
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4362
- Joined: 26 Apr 2010, 17:36
-
- 4StarLounger
- Posts: 563
- Joined: 27 Jun 2021, 10:46
Re: fill IN ARRAY A FILE NAME IN DIR
Or you could use an ArrayList with a custom sort method ... (just to be clear - you don't have to write the sort routine)