Hi..
Im saving States and Cityies from people answering a poll in a flat file database delimited by pipes. Flat file named States_Cities.t xt
The information is saved in this format:
FLORIDA|MIAMI
FLORIDA|JACKSON VILLE
FLORIDA|TAMPA
TEXAS|HOUSTON
TEXAS|DALLAS
TEXAS|AMARILLO
TEXAS|AUSTIN
TEXAS|MCALLEN
TEXAS|WACO
ILLINOIS|CHICAG O
I need a snippet of code which will read this file and then tell me how many different states I got, which are them, and which cities belong to each.
Thanx
Regards from virtualweb
Im saving States and Cityies from people answering a poll in a flat file database delimited by pipes. Flat file named States_Cities.t xt
The information is saved in this format:
FLORIDA|MIAMI
FLORIDA|JACKSON VILLE
FLORIDA|TAMPA
TEXAS|HOUSTON
TEXAS|DALLAS
TEXAS|AMARILLO
TEXAS|AUSTIN
TEXAS|MCALLEN
TEXAS|WACO
ILLINOIS|CHICAG O
I need a snippet of code which will read this file and then tell me how many different states I got, which are them, and which cities belong to each.
Thanx
Regards from virtualweb
Comment