Grasshopper

algorithmic modeling for Rhino

I am loading several CSV files into a database within the grasshopper environment. I'd like to pull out the headers of the CSV file to automate the creation of tables in mysql.

Can this be done via the Parser?

I can of course load the entire file "Per Line" and then just index on the first line, but this ends up getting very heavy beyond just one or two files.

Cheers,

TS

Views: 321

Replies to This Discussion

Answered my own question. For those interested...

Private Sub RunScript(ByVal path As String, ByRef A As Object)

Dim rs As New io.streamreader(path)

A = rs.readline()

rs.close

End Sub

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service