title: How to read txt file C++ and split them into columns
body: <p>This is the first time i am writing code in c++ (Visual studio 2010) . I have the logic i want to implement but i cannot put it to code. Have looked on many samples but nothing found.</p>
  
  <p>Basically i have a tab delimited txt file and i want to read it and put the data into string,string array anything.</p>
  
  <p>The issue is using the built in :</p>
  
  <pre><code>ifstream in;
  in.open("someData.txt");
  while(!in.eof())//the text from the file is stored in different variables
     {
     in&gt;&gt;inputData[0];
     in&gt;&gt;inputData[1];
     }
  </code></pre>
  
  <p>Will put the data into string array but splitting the row by Space even if the space occurs in the data row it will break it into two columns which is the problem.</p>
  
  <p>How can i properly read data line by line and into columns using c++ ?</p>