title: Can fscanf() read whitespace?
body: <p>I've already got some code to read a text file using <code>fscanf()</code>, and now I need it modified so that fields that were previously whitespace-free need to allow whitespace.  The text file is basically in the form of:</p>
  
  <blockquote>
    <p>title: DATA <br/>
    title: DATA <br/>
    etc...</p>
  </blockquote>
  
  <p>which is <em>basically</em> parsed using <code>fgets(inputLine, 512, inputFile); sscanf(inputLine, "%*s %s", &amp;data);</code>, reading the DATA fields and ignoring the titles, but now some of the data fields need to allow spaces. I still need to ignore the title and the whitespace immediately after it, but then read in the rest of the line including the whitespace.</p>
  
  <p>Is there anyway to do this with the <code>sscanf()</code> function? </p>
  
  <p>If not, what is the smallest change I can make to the code to handle the whitespace properly?</p>
  
  <p>UPDATE: I edited the question to replace fscanf() with fgets() + sscanf(), which is what my code is actually using. I didn't really think it was relevant when I first wrote the question which is why I simplified it to fscanf().</p>