|
-
Jul 17th, 2009, 08:14 AM
#1
Re: Find a string in a text file Fast....
If you are reading files that big you may wish to consider using some level of buffering instead of reading the whole file to memory at once.
-
Jul 17th, 2009, 11:43 AM
#2
Frenzied Member
Re: Find a string in a text file Fast....
 Originally Posted by Merri
If you are reading files that big you may wish to consider using some level of buffering instead of reading the whole file to memory at once.
Agree but can your code still be applied? It seems that your api opens the whole file at once.
Is it similar to this one:
http://www.vbforums.com/showpost.php...0&postcount=12
If yes, can you help me clean it up? I would really appreciate your help on this.
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
-
Jul 26th, 2009, 12:59 PM
#3
Frenzied Member
Re: Find a string in a text file Fast....
Hi Merri, I got your code to work on big files. It does run faster then any of the other method but there is a memory leak.
If you run it in Excel VBA, you can seek the memory keeps accumulating in the task manager.
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|