earlrainer
Programmer
Hi guys,
I want to do a simple thing on the handheld.
I have a file with the following details---itemno,itemname.
I want to make a function in evb that accepts a itemno as parameter.then it will open the text file and search for the item in the file.if it finds the item,then it shows the itemname.
I tried using a simple text file ,but the function takes a long time to return a result because it has to loop through the whole file line by line.
is there a faster method to do this.
Someone suggested using binary files.
So an you please show me how to
1)on a desktop PC i want to make a binary file with the item and itemname
2)on the handheld make a function that will search the file for a given item
Thank you.
I want to do a simple thing on the handheld.
I have a file with the following details---itemno,itemname.
I want to make a function in evb that accepts a itemno as parameter.then it will open the text file and search for the item in the file.if it finds the item,then it shows the itemname.
I tried using a simple text file ,but the function takes a long time to return a result because it has to loop through the whole file line by line.
is there a faster method to do this.
Someone suggested using binary files.
So an you please show me how to
1)on a desktop PC i want to make a binary file with the item and itemname
2)on the handheld make a function that will search the file for a given item
Thank you.