generative modeling for Rhino
Hi David et al,
I think the current Read File component is great, but it seems to be missing a friend. The current practice of streaming content by the Panel offer too little option. For example I would expect a WriteTxtFile tool, would take data like panels, and write it to a location (file path can be defined parametrically), write enable toggle, file exist check etc.
Because some of the time writing to a text file is preferred and that streaming content is not desired (which could accidentally overwrite my previous data). So a WriteTxtFile and StreamTxtFile could be two different component. So we could formally do the operation but not restricted to relying on the Panel.
Tags:
Permalink Reply by Victor Leung on January 27, 2011 at 7:47am 
Hi Victor,
it could be even shorter:
If (activate) Then
IO.File.WriteAllText(path, String.Join(Environment.NewLine, lines.ToArray()))
A = "File written to " & path & " at " & DateTime.Now
Else
A = "Not activated"
End If
But I like the idea of a dedicated file writing component. It probably makes a lot of sense to add one.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Permalink Reply by Victor Leung on January 27, 2011 at 8:32am
Permalink Reply by Archi_made on December 7, 2011 at 8:30am Hi,
I'm Phd student in architecture and i'm trying to modify a text file. I try to create the same component, but i have always an error, please could you send me this component in a GrassHopper File.
Thank you
Best regards
Permalink Reply by Victor Leung on December 7, 2011 at 9:44am Try This...
Hi Victor, Hi All
I've problem for write a list of text in txt file.
If i write a multiligne data, a last column is write.
© 2013 Created by Scott Davidson.
Powered by