Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read all lines from multiple text files.
#3
(05-30-2015, 05:19 PM)brandonio21 Wrote: 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!

Thanks brandonio, I managed to figure it out from your advice.
Reply


Messages In This Thread
RE: Read all lines from multiple text files. - by strawman83 - 06-04-2015, 08:54 AM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)