generative modeling for Rhino
I've testing your code but for list of text, the text used last column.
Please i need write a list of text on tree in the txt file.
You'll need to create a single string out of your list if you want to use IO.File.WriteAllText(). You can do this using a loop and a System.Text.StringBuilder for example.
If you specifically want to write to a file line by line, then you need to create a writer object that can send stuff to a file or memorystream.