Forum Discussion
AlexanderM
Staff
14 years agoHi,
You can post an error in this case - this will stop your test (note that the "Stop on error" option of your project properties must be enabled):
LineNumber = 7;
myFile = aqFile.OpenTextFile("C:\\1.txt", aqFile.faRead, aqFile.ctANSI);
myFile.SkipLine(LineNumber - 1);
if (myFile.ReadLine() != "stringToCompare")
Log.Error("The strings are not equal");