title: takin input from a file and saving it into temporary memory?
body: <p>I have a structured array that is initially empty and has 4 data types withing, string, 2 int's and 1 float. I have a list of dvd titles and other attributes (3 other,2 of them are int the last one is float) saved in a text file and I need to input the data from the text file to my structure. this is my code, but seems like it isnt working?</p>
  
  <pre><code>        do
          {
             for(int i=0;i&lt;MAX_BOOKS;i++)
             {
  
                  tempTitle= getline(myfile,line);
                  temChapters = getline(myfile,line);
                  tempReview = getline(myfile,line);
                  tempPrice = getline(myfile,line);
             }
          }while(!myfile.eof());
  </code></pre>