Hi folks, i spent the last day or so writing a quick logfile parser. It literally just searches the file for categories of search terms. I was happy with my new creation!
Until....
I've just realised that when the logfile is created, newlines are being randomly inserted into the file. I've no idea why. It seems just to be the way these logs are created!
The problem being that occasionally, my search terms are cut in half by a newline! How on earth am i supposed to deal with that?
Any advice would be greatly appreciated. Thank you!
In reply to Help parsing badly constructed logfiles by Amblikai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |