We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a text file that looks like this:
0.0 0.0 0.0 0.0 180.0 -0.0 180.0
0.0 0.0 0.0 0.0 180.0 -0.0 180.0
0.9982766 -0.0056947786 0.0011389557 -0.0056947786 0.65514725 -0.13400616 0.65514725
0.9982766 -0.0056947786 0.0011389557 -0.0056947786 0.65514725 -0.13400616 0.65514725
but is 600+ rows, each row looks like that, but with changing values. I got it from data caught in realtime using a 6DoF sensor via serial using arduino connected to processing in a sketch made in 1.5.1 the program also displayed this information with a dataviz i created.
I need to take this data in the .txt file and load it instead of the realtime data from the sensor so I can replicate the viz I got that time.
I found the function loadTable() but it seems it's only available in 2.0 and I'm not sure if the sketch will work if I load it into 2.0 so I want to know a way for 1.5.1 to do it.
any suggestions?
Thank you! and sorry for my bad english.
Answers
Why don't you just try loading it into 2.0 and seeing what happens?
If you're dead-set against it, you might have to look at file loading in Java. The Scanner class is a good place to start.
In the old forum, there are lot of examples of using loadString() to load such file and split() to cut it in parts.