title: using scanf and family to read in two strings separated by a space from a file in c
body: <p>I am trying to read in 2 string that are separated by a space from a file.</p>
  
  <p>Whatever I try I keep getting the 1st string initialized but the second string is always NULL. </p>
  
  <p>Some of the formatters that I have tried are <code>"%s%s"</code> , <code>"%s %s"</code> , <code>"%s[\n\t ]%s"</code> </p>
  
  <p>Any ideas of what I am doing wrong? </p>
  
  <p>I think it has to do with the internal buffer of scanf -- reads the first <code>%s</code> then puts some invisible character in buffer reads that with 2nd <code>%s</code> which then is read and the second string is <code>NULL</code> when complete.</p>