Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with files & directories

Status
Not open for further replies.

EzehM

Programmer
Feb 27, 2003
86
GB
Please I am a c# newbie, I need help with writing an application that will search for files on my d: drive with a .ctl extension, read each line of such files for a text called "pull", extract that line and write it to another file.

Thanks in advance
 
How far have you got with this? The first step I guess is to create a DirectoryInfo object. You can then use foreach FileInfo within the DirectoryInfo object. All in System.IO I believe.
 
Thanks for the information. When the gurus werent forthcoming, I pulled out C# in a nutshell, read some relevant chapters and have written the application.

System.io was quite handy as was Directory.GetFiles(string, string)

Reading and writing to a text files was pretty stright forward.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top