title: Data reading and storing in c#, (Concept..no code)
body: <p>I want to translate my Matlab code (least squares plane fitting) into C#.
  I have many problems in understanding c#.
  Let me ask here.
  Reading a text file and storing data in xyz format in matrix (e.g., xyzdata= xyz) in Matlab is quite easy.
  Translating it into CSharp?
  How can I read [x y z] without knowing length of file and how can I store it in Matrix form?
  Thank you very much for your help and If someone has plane fitting code / link, please guide me.</p>