Looking for Suggestions (Opening Files in Folders)

  • Thread starter Thread starter Ddraig
  • Start date Start date
D

Ddraig

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
 
Ddraig said:
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top