Quote Originally Posted by Aslan14
I was thinking for the first part, the part where you discard the bad data, that I would use a flag inside a for loop. But not sure how I would initialize it, since the numbers are in the 4th column.
Instead of immediately formatting and printing the line, read the contents of the entire line into say a struct. If the flag is 1, format and print the struct, then move on to the next line.