title: retrieving a string with spaces from a file in C
body: <p>We were given an assignment that involved taking information from a file and storing the data in an array. The data in the file is sorted as follows</p>
  
  <pre>
  New York            40 43 N    74 01 W
  </pre>
  
  <p>the first 20 characters are the name of the city followed by the latitude and longitude. latitude and longitude should be easy with a few</p>
  
  <p><code>fscanf(infile, "%d(</code>or <code>%c</code> depending on which one i'm getting<code>)", pointer)</code></p>
  
  <p>operations so they won't be a problem.</p>
  
  <p>My problem is that i do not know how to collect the string for the name of the city because some of the city names have spaces. I read something about using delimiters but from what i read, it seems like that is used more for reading an entire line. Is there any way to read the city name from a file and store the entire name with spaces in a character array? Thanks.</p>