We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a txt file in which point cloud data are stored..i want to use that data array..and after editing i want to draw that point cloud data..can anyone please provide me the code for this?????
Answers
loadStrings()
https://processing.org/reference/loadStrings_.html
...and
saveString()
... andsplit()
....OR
or via
loadTable
andsaveTable
can you post the first 10 lines of the file?
the tricky part is editing. Do you mean text editing ? Or visual editing?
simple version with loading and editing, but without saving
make a txt file in the sketch folder named "data.csv" with the content as shown below (without the leading space in each line!)
loadStrings()
is the simplest way of doing it yourself, but I'm a big fan ofloadTable()
-- it is a bit more verbose, but great for working with loading and saving structured data files. The reference entries for methods of loadTable have lots of examples of how to use it.