[RESOLVED] How To Find Multiple Words In Text File
Hi
i have a text file which contain 149000 Words 1 Word Per Line
I want to Search Words Who end with "sd" or something else i am using a listbox in which i load all text and then search for it i don't want to know how to search directly from text file listbox method take too much time any help Plzzzzzzzzzzzzzzzzzz
Re: How To Find Multiple Words In Text File
try this:
vb Code:
Dim words() As String = IO.File.ReadAllLines(filename)
Dim endingWith = (From word In words _
Where word.EndsWith("sd") _
Select word).ToArray
Re: How To Find Multiple Words In Text File
don't forget to mark your thread RESOLVED
Re: How To Find Multiple Words In Text File
Thanks
But How to show the word in textbox ?
Re: How To Find Multiple Words In Text File
it's multiple words, so your txtbox must be multiline
textbox1.lines = endingWith
Re: How To Find Multiple Words In Text File
Re: [RESOLVED] How To Find Multiple Words In Text File
Hi I got this error in end when i add the code in my final project how to resolve it ?
Quote:
Error 1 Expression of type '1-dimensional array of String' is not queryable. Make sure you are not missing an assembly reference and/or namespace import for the LINQ provider.
1 Attachment(s)
Re: [RESOLVED] How To Find Multiple Words In Text File
Re: [RESOLVED] How To Find Multiple Words In Text File