That worked fine.

I actually tried embedding it next to my work code and it worked every time through the loop - although the loop broke at 55 rather than 62 this time (there were 66 lines in the input file).

Anyone got any ideas????? I am stumped!