title: c++ parsing data from file I/O
body: <p>I am writing code to 1. read in from a file via command line argument, 2. parse through each line of data (string) and 3. split the data into 4 substrings.</p>
  
  <p>say I have game.txt</p>
  
  <pre><code>3
  overwatch|hanzo|junkrat|reinhart
  league of legends|vayne|ezreal|master yi
  starcraft|marine|zergling|zealot
  </code></pre>
  
  <p>the output that I want is each to have each line of data be splited into 4 substrings and I want to save each respective column to some sort of container. Possibly linkedlist of Strings, or array of strings.
  So,     </p>
  
  <pre><code>overwatch
  hanzo
  junkrat
  reinhart
  league of legend
  vayne
  ezreal
  ...
  
  
  String nameOfGame = overwatch;
  String leastFav = hanzo;
  String fav = junkrat;
  String bestCharacter = reinhart;
  </code></pre>
  
  <p>I've tried several ways to go about this problem, but I cannot see the logic to have string read in and parsed at the same time. The concept is still new to me, and I need some advice on where to start and how to approach the problem.</p>
  
  <p>What could I do here?</p>