title: How to read a single character in file using MATLAB?
body: <p>In my file <code>data.txt</code>, I have a string <code>abcdefgh</code>. Now I want to take just 1 character without read whole string. How can I do this in MATLAB?</p>
  
  <p>For example, I want to take the first character, I use <code>c = fscanf(data.txt, '%c');</code> and <code>c = textscan(data.txt, '%c');</code> but it read whole line in <code>data.txt</code>. I know that <code>c(1)</code> is my answer but I don't want to do that.</p>