First of all, you can replace the while loop with a for loop. Just use the array size for N or wire the array into the loop to auto index. Just a point.
Regarding the question, I'm assuming you need 3 underscores (_) in each line. If that is the case, take the "Offset after match" (I think that's its name) output from the match pattern VI and check to see if it's -1. If at least one of them is, your file did not match and you can return your error.
You can do this by using the one button dialog box VI or by incorporating your error as a LV error cluster, which is more complicated and probably unnecessary for something like this. Then, you can place the entire thing in a loop and tell the user "the file was wrong. Select another.".
BTW, the error you were getting from LV was probably you tried reading a non existing file.
___________________
Try to take over the world!