473,385 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Looking for Suggestions (Opening Files in Folders)

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
1 1238
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Phil Powell | last post by:
Where can I find an online PHP form validator script library to use? I have tried hacking the one here at work for weeks now and it's getting more and more impossible to customize, especially now...
3
by: Mark | last post by:
Hi - I want to provide a secure (ASP) based file browser - based on a parent/child table of files/images etc - stored in a directory on a server. I want to be able to have individuals, who...
2
by: Glen | last post by:
As I understand it, when the first page of an application is accessed, all ASPX/ASCX/etc. files in the same folder are compiled using the JIT compiler. Is there a way to turn this feature off? ...
5
by: Poul Dam | last post by:
Hi Setup: Windows 2003 Server Exchange 2003 Server ..NET framework 1.1 I have created an ASP.NET web application and registered it as the application to use when opening messages from
0
by: Hongbo | last post by:
Hi, I use VS.Net 2003 with Visual SourceSafe 6.0d on a Windows 2000 Standard Server. Today, when I tried to open an existing ASP.Net project from VS.Net, the "Set Project Location" window came...
1
by: Anindya C via DotNetMonster.com | last post by:
When i want to open vs.net 2002 professional edition, a window installer message box appears saying: "Please wait while windows configures Microsoft Visual Studio .NET professional _english". After...
3
by: Kimera.Kimera | last post by:
I'm trying to write a program in VB.net 2003 that basically deletes all files, folders, sub-folders and sub-sub folders (etc). The program is simply for deleting the Windows/Temp folder contents,...
0
by: =?Utf-8?B?cG9u?= | last post by:
Background: Since Microsoft’s security update 896358, security update 840315 or Windows Server 2003 Service Pack 1, you can not longer open and see topic content in help files on the network....
4
by: jonathan184 | last post by:
Hi I have a perl script, basically what it is suppose to do is check a folder with files. Now the files are checked using a timestamp with the command ls -l so the timestamp in this format is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.