Grasshopper

generative modeling for Rhino

Who knows how to Read and Write *.txt or *.xls files in Grasshopper?
It will be great help for me to link with other database.
Since there are lot of software which can do data analysis more easily.
Thank you~

Tags: database, external, file, input, output, read, txt, write, xls

Share

Reply to This

Replies to This Discussion

You can try in VB code with System.IO.File, like this:

system.IO.File.WriteAllText("c:\text.txt", "text")

This code write word text in file text.txt on disk c.

Reply to This

This is from a while back, but you can correct directly to excel from within GH. I'm not sure the extent to which you could read xls files without running excel.

http://liquidtectonics.blogspot.com/search/label/Excel

Reading in a csv file wouldn't really be much different in GH than parsing it within dotNet, so all of the dotNet classes you would use would be the same.

Reply to This

RSS

© 2009   Created by Scott Davidson on Ning.   Create a Ning Network!

Badges  |  Report an Issue  |  Privacy  |  Terms of Service