reading from a file

example file:
1
2
3
4
  123 - washington, DC
  111 - new york city, NY
  117 - san fran, CA
  //and it goes on.. 


how do i read only the numbers and ignore the "-" and cities into a string?
Last edited on
Topic archived. No new replies allowed.