help reading a file

Joined
Feb 5, 2008
Messages
1
Reaction score
0
Here is some example text from the text file.

01,"35004","AL","ACMAR",86.51557,33.584132,6055,0.001499
01,"35005","AL","ADAMSVILLE",86.959727,33.588437,10616,0.002627
01,"35006","AL","ADGER",87.167455,33.434277,3205,0.000793
01,"35007","AL","KEYSTONE",86.812861,33.236868,14218,0.003519
01,"35010","AL","NEW SITE",85.951086,32.941445,19942,0.004935
01,"35014","AL","ALPINE",86.208934,33.331165,3062,0.000758
01,"35016","AL","ARAB",86.489638,34.328339,13650,0.003378


i need to be able to "search" for the zip they enter then pull out state, city, lat, long.

SO for example, user inputs 35004. i output AL,ACMAR, and then tell how far it is from my zip code which is a constant. I dont know how to read through every line to find the zip then extract parts of the line i need to store.

Oh and this is due thursday AHHH!! any help would be great. Thanks

-Dinny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,158
Latest member
Vinay_Kumar Nevatia
Top