title: How to ignore characters and read only integers in a c file
body: <p>I have a file and using fscanf i want to read only the integers and ignore the characters if any.</p>
  
  <p>Like the file would be:</p>
  
  <p>1
  2
  a
  5
  c
  6</p>
  
  <p>(i.e on each line there would ne only a single number or character... and i want to ignore lines with character)
  so i need to read only the integer values.</p>
  
  <p>Does any body know how to do this?</p>
  
  <p>Thanks.</p>