|
-
Oct 18th, 2007, 01:18 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] 03 Want to write the names of the text files in a folder into a string
I want to do one of two things. Either :
A.) Display all the text files that are in a certain folder. I know how to do this using OpenFileDialog code but I don't want the user to have all the options normally available to them when you see the open file dialog. I'd like them when they click a certain button to be able to see the names of all the files in a certain folder but not be able to open the files or browse to other folders, etc. etc. Imagine the open file dialog window without the browse option at the top and the open button and the text box to enter a file name etc.
Or
B.) I'd like to feed all the names of those text files in that certain folder which only has text files in it into a string. The names for all the text files have only numbers or letters or a dash or a decimal point in them. I'd probably want to put some other type of symbol like a + maybe or something else that doesn't fall into the other categories to mark where one file name ends and the next begins or else feed the file names into separate strings that were in an array.
After that I'd know what to do to process the one big string or the group of separate strings to do what I want. If no one answers this I'll figure it out on my own but maybe someone could point me in the right direction here and reduce the amount of searching around that I have to do.
VBForums has helped me a lot and I know that it's helped many other programmers a lot. God bless you VBForums.
 Make as many mistakes as you can as quickly as you can. We want to make sure that we make a great enough number of mistakes in a given amount of time so that we can be successful.
"Persistence is the magic of success." Paramahansa Yogananda
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|