This line right here is saying, if the amount of lines in the news.txt file is greater than the variable %limit(in this case 8 lines) delete the first line of the file.

while ($lines(news.txt) > %limit)