writing to file

a function "write-data" is mentioned a couple times in the File class documentation. Does it exist? Either way, how do I save a vector into a text file? I'm trying to save the x,y,z coordinates of an agent over discrete intervals, but can't convert a vector to a string. Any thoughts? thanks!

writing to file

"write-data" is used for the internal breve type "data", which is normally just used by breve developers or for writing plugins. You can convert a vector to a string by embedding the vector variable in a string like this:

myFile write-line text "$myVector".

- jon

i just encounter this

i just encounter this problem! thanks for your answer, Jon!!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.