title: Parse file in C to read char
body: <p>Let's say i have a file filled with random characters with whitespaces and \n included also random.</p>
  
  <p>I want to look for this groups of chars, example: UU, II, NJ, KU. So the purpose is to read the file, look for this kind of groups and say how many are they in the file.</p>
  
  <p>My problem is whitespace and \n, becase if i find one of these i should skip it and search again for the groups. I found a solution that could help me, the function <strong>strtok_r</strong> . </p>
  
  <p><a href="http://www.codecogs.com/reference/computing/c/string.h/strtok.php?alias=strtok_r" rel="nofollow">http://www.codecogs.com/reference/computing/c/string.h/strtok.php?alias=strtok_r</a></p>
  
  <p>i think this will isolate full strings so i can read one at time.</p>
  
  <p>Is it a good solution or should take other approach?</p>