Pixel-ink
❔ [RESOLVED] Find all Occurrences in All Files in Folder Issue
Yeah, figure that. But, all my code was working before I posted for help. But the old code only returedn one line per file that had matching term. I want all lines in each file that matches term searched for.
110 replies
❔ [RESOLVED] Find all Occurrences in All Files in Folder Issue
I am searching through every file in a folder with a specific search term.
I have the list of all text in each file.
But I am stuck on how to filter just the search term and list them the way they are in the file on each line.... and output to a TextBox
110 replies
❔ [RESOLVED] Find all Occurrences in All Files in Folder Issue
....
Did some research... is this correct for converting???
I get no errors.... But, of course does return any results because I don't have my search term in there anymore. Just need to figure that out.
110 replies
❔ [RESOLVED] Find all Occurrences in All Files in Folder Issue
So, my current struggle is. I have a list from a file.....
string[] lines = File.ReadAllLines(file);
But, I can't seem to figure out how to convert so I can use it with the IEnumarable Where method that was suggested to me.
1) How do I link my "lines" to this List to get rid of error.
Basically how do I convert "lines" to work as a Collection String
List<string> txtStr = lines; <<--- ERROR
2) Where do I use my search term?
I had to discard it because the entire Where line above was broke and didn't work in my last code.
DateTime.Now
Thanks for any input.
110 replies