algorithmic 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.
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
A = "Not activated"
But I like the idea of a dedicated file writing component. It probably makes a lot of sense to add one.
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.
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.
Hi Remi, could you solve the problem? I am having the same one...Could you give me some advice?
Please, look this ghx !!