Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read all lines from multiple text files.
#2
Hello strawman83!

First off, welcome to BP Forums!


As for your question, the answer isn't too complicated. SImply loop through all the files in a directory, create a new StreamReader and a new List<String> for each file. Then, as you read lines using the StreamReader, add those lines to the list.


If you need more help, especially with the details of the code, do let us know!
My Blog | My Setup | My Videos | Have a wonderful day.
Reply


Messages In This Thread
RE: Read all lines from multiple text files. - by brandonio21 - 05-30-2015, 05:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to: Search files from a certain directory with Progressbar + Backgroundworker ryanshane91 1 13,727 11-25-2017, 12:55 PM
Last Post: brandonio21

Forum Jump:


Users browsing this thread: 1 Guest(s)