title: how to textscan to read all the lines in a file
body: <p>I am trying to read all the lines in a .m file with the following </p>
  
  <pre><code>file_content = textscan(fid, '%s', 'delimiter', '\n', 'whitespace', '')
  </code></pre>
  
  <p>but this just returns </p>
  
  <pre><code>file_content = 
  
      {0x1 cell}
  </code></pre>
  
  <p>when actually my file has 224 line. so if i use </p>
  
  <pre><code>file_content = textscan(fid,'%s',224,'delimiter','\n')
  </code></pre>
  
  <p>i get all the lines</p>
  
  <pre><code>file_content = 
  
      {224x1 cell}
  </code></pre>
  
  <p>what will be a more proper way to read all the data(mostly strings) in a .m file?
  thanks</p>