|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Search string in textfileHi All,
I am looking for fastest search alogrithm in vb.net or vb2005. I write a code in vb2005 to find a string in given text file. The text file contains about 120,000 lines and search string is contain in another text file which is abt 4000 lines. My code takes nearly 15 mins to scan the whole file. Could anyone suggest me the fastest way to do this? Thanks & Regards beerSA. How are you doing it now?
Robin S. ---------------------------- Show quoteHide quote "beersa" <sabeer.sab***@gmail.com> wrote in message news:1164021154.116326.203430@h48g2000cwc.googlegroups.com... > Hi All, > > I am looking for fastest search alogrithm in vb.net or vb2005. > I write a code in vb2005 to find a string in given text file. The text > file contains about 120,000 lines and search string is contain in > another text file which is abt 4000 lines. > > My code takes nearly 15 mins to scan the whole file. > > Could anyone suggest me the fastest way to do this? > > Thanks & Regards > beerSA. > Could you tell a bit more ??
cause now i understand it as if you want to find a 4000 lines search pattern in a 120.000 lines file regards Michel Posseth [MCP] Show quoteHide quote "beersa" wrote: > Hi All, > > I am looking for fastest search alogrithm in vb.net or vb2005. > I write a code in vb2005 to find a string in given text file. The text > file contains about 120,000 lines and search string is contain in > another text file which is abt 4000 lines. > > My code takes nearly 15 mins to scan the whole file. > > Could anyone suggest me the fastest way to do this? > > Thanks & Regards > beerSA. > >
naming conventions forced by VS.NET?
Attribute instantiation How to declare a sub class thread dead lock Passing multiple arguments to the client-side JavaScript function in AJAX Replace " character in string Save Changes in VB.NET 2005 with Access 2003 --- Not using any Binding Navigator DataGridView1 (VS2005) textbox.backgroundImage ConfigurationManager unrecognized |
|||||||||||||||||||||||