View Single Post
  #2 (permalink)  
Old November 16th, 2008, 06:32 AM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 8,994, Level: 40
Points: 8,994, Level: 40 Points: 8,994, Level: 40 Points: 8,994, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 2,922
Thanks: 0
Thanked 13 Times in 12 Posts
Default

You can use DirectoryInfo class and the GetFiles method, one overload accepts a search pattern, *.txt, off the top of my head, which will give you all text files. You can then read the data.

--

Joe (Microsoft MVP - XML)
Reply With Quote