There is a strange thing in data from repository: the UK data repeats at end of file. That should be solved by sorting. I did not manage to implement a sorting in the code. If you know it will be good. Probably the best place to sort is after the reading of the lines in my version. In your version it is not possible since you read and write at same time.
There is a strange thing in data from repository: the UK data repeats at end of file. That should be solved by sorting. I did not manage to implement a sorting in the code. If you know it will be good. Probably the best place to sort is after the reading of the lines in my version. In your version it is not possible since you read and write at same time.