View Single Post
  #6 (permalink)  
Old 03-13-2008, 12:59 AM
Leginus Leginus is offline
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default

If you are checking for a certain chr then the quick way if you don't wish to use sql is read the whole file into a variable and search from there. You can use a text box for this but a variable is definitely quicker as I have tested this in one of my programs. If the file is too big for memory then you can read it in chunks.
e.g. read from pos 0 to 1000 and 1001 to 2000 and so on.

You can then get the char position within the variable and manipulate the string as you were doing. It is file access that is slowing this down.
Reply With Quote