Are the records sorted by the first field?

If so, you should be able to use the POS function to do a binary search
into the file - which will be much faster.


>Hi all,
>
>I must said I am new with NSBASIC but have some pratice with other
>langages like VB, PHP, JAVA....
>
>I have a 2MB file "csv" with two field :
>first field is hexadecimal 8 bytes
>Second field is decimal codeded coded on 12 bytes
>the file should support almost 100.000 records
>This list is generated outside and order on first field.
>
>I have to retreive the good data line with hexa code (first field) 
>comming from MIFARE card reader (I already have done it !)
>
>Reading line by line take more than 10 minutes and is not acceptable so
>when Reading the Tec Note 8a it seem this is exactly what I need
>but  description with too few sample code is not enought for me...
>
>Can anybody give me the fist few lines to open my file (test.txt)
>and use record.field(index) to get the indexed line in my file
>Then close the file
>
>With those few line I think I would be able to integrate what I need to
>do with it
>
>Thanks for any help
>
>Sky
>
>
> 
>
>
>
>
>
>
>
>------------------------------------
>
>Yahoo! Groups Links
>
>
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to