-
Loading folder names
Ok, what i want to do is load all of the names of all folders in a certain directory. for instance, how would i load all of the folder names inside
app.path & "\contacts"
into a list box, as well as an array, and then when a name is clicked in the list box, the names of the text files within that folder, are loaded into an array. how would i do this?
-
Re: Loading folder names
It has been answered many times. Simply do a search on the forums
http://www.vbforums.com/search.php?
Try searching for List Folders, List Subfolders ...etc.
-
Re: Loading folder names
ok, i found that i could do what i wanted to with a directory list box, but how would i load the contents of that folder (they will be text files) into the program like this.
1.txt is loaded into text1
2.txt is loaded into text2
and continue for a total of 5 text files?
-
Re: Loading folder names
You can do that by searching too. Search for "List Files", "FindFilesAndFolders".
And for loading files search for "Load File", "Load text file", "Save text file" etc. You will see that almost any question you have is probably already answered.