in reply to Re^3: truncating a text file
in thread truncating a text file
Removing the line that gives a warning is a great way of stopping it from giving the warning, as long as you don't mind that the program no longer does the one thing the OP asked for help with.