Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

search a file

Status
Not open for further replies.

earlrainer

Programmer
Mar 1, 2002
170
IN
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top