I have data in a text file in the following format
WA5362288SeaTac city 25496 10176 434224 9.964121 0.167655 47.441406-122.293077
WA5363000Seattle city 563374 270524 151956998 83.872647 58.670927 47.626353-122.333144
Now I am trying to extract specific values from the above data (which has had some padding spaces removed), for example
WA SeaTAC 47.441406 -122.293077
I am unsure of how to get values from specific columns in C while streaming through a text file
FILE *fp;
fp = fopen("places.txt", "r");
if(fp == NULL){
fprintf(stderr, "Can't open the file");
exit(1);
}
while(!feof(fp)){
//extract values from specific column
//fscanf()
}