Is this possible to read previous line(CAN message) from the .asc log file?

Issue #3 closed
Former user created an issue

Hello Tobias,

Thanks for your supporting. Is this possible to read previous line(CAN message) from the .asc log file? Purpose of go back option is required to read reverse log file(botttom to top). Can you please give me some input?

Thanks in Advance!

Regards Venkatesan S

Comments (3)

  1. Tobias Lorenz repo owner

    Hi Venkat, sorry for my late answer. I thought about this feature, but I think, it's technically not feasible, or otherwise highly inefficient. ASC is a textual format with arbitrary line length. So the library cannot now, to where to rewind the file position to, and searching backwards for the latest line feed is not a feature of std::fstream. If you want to have such a functionality, I think it's more suitable to read the messages into a queue and keep a certain queue length. So then you can rewind within the queue, as long as it is. Bye Tobias

  2. Log in to comment