title: Issue with file reading and vector entries
body: <p>The purpose of this program is to read a text file and store its contents in 3 separate vectors.</p>
  
  <p>The text file, called "InsultsSource.txt", contains 50 rows of tab-delimited columns of adjectives that looks like this:</p>
  
  <pre><code>happy    sad    angry
  tired    mad    hungry
  </code></pre>
  
  <p>Below is the code I'm using to achieve this. For some reason, the everything works until the 16th line at which point empty spaces are returned. I've checked the text file to see if the format changes around there but it looks fine. I'm just wondering if there's any error in my logic/code that is causing this problem.</p>
  
  <pre><code>#include &lt;vector&gt;
  #include &lt;string&gt;
  #include &lt;fstream&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  
  int main() {
  
      ifstream fileIn("InsultsSource.txt");
      vector&lt;string&gt; col1;
      vector&lt;string&gt; col2;
      vector&lt;string&gt; col3;
      string word;
  
      if (fileIn.fail()) {
          cerr &lt;&lt; "Unable to open file" &lt;&lt; endl;
      }
  
      for (int i = 0; i &lt; 50; i++) {
          if (i % 3 == 0) {
              getline(fileIn, word, '\t');
              col1.push_back(word);
          }
          else if (i % 3 == 1) {
              getline(fileIn, word, '\t');
              col2.push_back(word);
          }
          else {
              getline(fileIn, word);
              col3.push_back(word);
          }
      }
  
      for(int j = 0; j &lt; 50; j++) {
          cout &lt;&lt; j+1 &lt;&lt; " " &lt;&lt; col1[j] &lt;&lt; endl;
          //cout &lt;&lt; "Thou " &lt;&lt; col1[j] &lt;&lt; " " &lt;&lt; col2[j] &lt;&lt; " " &lt;&lt; col3[j] &lt;&lt; "!" &lt;&lt; endl;
      }
      return 0;
  }
  </code></pre>