title: Reading a delimited file with fscanf
body: <p>I'm trying to read a file which uses 2 colons as a delimiter using fscanf. Example:</p>
  <p>Input</p>
  <blockquote>
  <p>:watermelon::a tasty fruit::potato::a vegetable::</p>
  </blockquote>
  <p>Each of the produce and definitions are delimited by a colon. I'm trying to iterate through this list so that I can print out the definitions and output.</p>
  <p>Output: (through a printf)</p>
  <blockquote>
  <p>watermelon</p>
  <p>a tasty fruit</p>
  <p>potato</p>
  <p>a vegetable</p>
  </blockquote>
  <p>I'm not sure how to do the iterations through a while loop and it's just printing watermelon over and over again at the moment.</p>
  <p>Thanks for your help!</p>