By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,411 Members | 1,030 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,411 IT Pros & Developers. It's quick & easy.

Looking for Suggestions (Opening Files in Folders)

P: n/a
Howdy,

I was wondering if anyone could point me in the direction of some good code
that will look at a folder of various text files, read in the names and then
open them. For example opening various log files would be a good example of
something like this. I think I've got the whole reading the text out of the
file figured out, but just wondering about how to select files in a folder,
execute the streamreader code, then move on to the next file.

Thanks,
Dd.
http://www.fdwsnetworks.com - http://www.tnrgonline.com
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Ddraig" <us**@domain.com> schrieb:
I was wondering if anyone could point me in the direction of some good
code
that will look at a folder of various text files, read in the names and
then
open them. For example opening various log files would be a good example
of
something like this. I think I've got the whole reading the text out of
the
file figured out, but just wondering about how to select files in a
folder,
execute the streamreader code, then move on to the next file.


Maybe this sample helps you to develop the code used to enumerate the files:

<URL:http://dotnet.mvps.org/dotnet/samples/filesystem/downloads/FileSystemEnumerator.zip>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.