Thread
:
read any ".txt" file
View Single Post
#
2
(
permalink
)
November 16th, 2008, 06:32 AM
joefawcett
Wrox Author
Points: 8,994, Level: 40
Activity: 0%
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 2,922
Thanks: 0
Thanked 13 Times in 12 Posts
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
)
joefawcett
View Public Profile
Visit joefawcett's homepage!
Find all posts by joefawcett