- 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
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