algorithmic modeling for Rhino
List <string> list = new List <string> ();
for (int month = 1; month <= 12; month++)
{
StreamReader reader = new StreamReader(String.Format("C:\blablabla\wind_speed_2007_{0}.txt", month));
string line;
while ((line = reader.ReadLine()) != null)
{
list.Add(line); // Add to list.
}
}
A = list;
Tags:
StreamReader stream_1 = new StreamReader ("C:\somewhere\stream1.txt")
//create as many other streams as you want...
StreamReader stream_2 = new StreamReader ("C:\somewhereElse\stream2.txt")
PSEUDOCODE
Dim pathPre As String
Dim pathSuf As String
pathPre = "C:\somewhere\stream"
pathSuff = ".txt"
For i = 0 to 60 (number of files to read)
Dim path As String
path = pathPre & i & pathSuf
StreamReader stream = new StreamReader (path)
'other code here to extract the read data and store it somewhere
Next
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by