Definition of read_record:


Code:
char read_record[256]
Loop structure:

Code:
	while ((loop_check = in_file_stream1.peek()) != EOF )
	{
		in_file_stream1.getline(read_record,255); etc etc etc
        }
Within the loop there is a function to parse the read_record and do some calculations based on the different fields. The two last numerical fields are x and y map coordinates and the error I need to spot is if two consecutive records have the same x and y coordinates, because this will cause division by zero and crash the programme. The value of getting cout to print the whole line if this occurs, instead of just the line number, is that you can then paste the cout output into a text editor search box and go straight to the problem line.