Read/Write a TXT file with timestamp
I'm quite surprised that the messageETCS regex actually works.
Probably the best and fast way it's to use a parser (ex: https://github.com/picoe/Eto.Parse).

To improve performances, read and process the file chunk by chunck, or line by line if those are lines