Is it possible to parse file from end to beginning?
-
egor -
January 25, 2019 at 1:31 PM -
Thread is marked as Resolved.
-
-
That sounds much more difficult than just having the text file written in reverse for you to read.
-
Yes, I know, but I can't change the order of data, because this is data from sensor.
-
OK. So is the file the same? You know every time that there will be, for example, 23 elements? If so, then you can read from the beginning to end, storing the data in an array buffer, perhaps in reverse order. It is kind of an extra step, but can work.
-
So is the file the same?No, it's not the same, but I like your idea. I will try it.
-
Great, I hope it works for you.
-
I did it! Working with any amount of strings in file.
-