title: Reading from .txt file to array one line at a time (Matlab or C). "Insufficient memory" to load the whole file at once using 'A=load()'.
body: <p>I have a .txt file containing 1000 rows and 100000 columns. A 10GB text file, of simulation results (real numbers) that I need to analyse. </p>
  
  <p>My data is of the form:   <code>[0.5 0.3 0.45 .. ;
                           0.4 0.22 0.21587 .. ;
                           0.1359 1.054 1.1 ... ]</code><br>
  (separated by spaces and lines) </p>
  
  <p>If I try loading (in Matlab) the entire file into a matrix at once using <code>A=load('Data.txt')</code>, I get an error message: "Insufficient memory", which I assume means - RAM (right?). </p>
  
  <p>I wish to read than only one line from the file at a time, into a 1d array. How do I do that? 
  I already tried different versions of <code>A=load('Data.txt')(1,:)</code> or <code>A=load('Data.txt'(1,:))</code> etc. </p>
  
  <p>An answer in C code code would also be appreciated. Thank you. </p>