hello! I tried posting this in another community forum and didn't get much success...
is there no way to duplicate the >> operator functionality in C#? I have a file that is set up like this:
450 350 0 0 10 390 10 20 40 20 0 1 1 0 20 409 ...
where the first two numbers are the dimensions of an array and the next 450 numbers are the first row of that array, the next 450 numbers are the next row, and so on to fill 350 rows, and they are all on one line.
so I need a way to do something like:
input >> firstNum;
input >> secondNum;
for (i = 0; i < firstNum; i++)
for (j = 0; j < secondNum; j++)
{
input >> tempInt;
theArray[i,j] = tempInt;
}
that might not be syntactically correct because I'm not too strong in c++ either :( but I know that it's something like that, and that's what I want to do in C#, but all the stream inputs use readline() which will grab the whole humongous line and that's not what I want.
i looked into the binary reader but I can't seem to get what I want from that either... am I screwed?
-SelArom