Ive got a txt file with 120 lines in it, basically all i want to do is read through each line in it (looping around) and once in that line position, check to see if it contains an "R", if it does then i want to do something!

Ive had a go at doing this, as you can see from the code below. But got an error, also shown below! Please try and help in any way you can!