I have to find out if any line of the txt file ends with 'end'. If any line does, then my program must go to specific label. I've read PASCAL help from beginning to the end but I couldnt figure out how to check what are the last three letters in each line. Can anybody help me? It's VERY important!!

i'm not sure if this is about how to assign or to parse a textfile.

try to read about strings and string handling routines in pascal. for example read about:
length
strcat
strcomp
strcopy

best regards,