I'm receiving some coordinates from a RFID sensor and saving it in a .txt file. I need to read these coordinates and apply some calculation (matrix calculus).
How can I read it in real-time? I noticed that I can't use FS since my .txt file is never finished, my sensor keeps saving data every second.
These are my coordinates in a text file:
{"coordinates":{"x":-775,"y":-1217,"z":780},"tagId":"26459"}
{"coordinates":{"x":-152,"y":-113,"z":-1327},"tagId":"26398"}
{"coordinates":{"x":-770,"y":-1185,"z":731},"tagId":"26459"}
{"coordinates":{"x":-137,"y":-104,"z":-1337},"tagId":"26398"}