Write bad lines to file for examination