title: taking input from a file_2
body: <p>i am taking input from a file row-wise...each row contains three or less columns...
  everything is fine if the line in the file is like</p>
  
  <pre><code>     lda #5           
  </code></pre>
  
  <p>or</p>
  
  <pre><code>label +lda #5
  </code></pre>
  
  <p>but if a line starts with '+' like </p>
  
  <pre><code>+lda #5
  </code></pre>
  
  <p>that line is not being input....why is this so?</p>
  
  <p>the input taking code is  </p>
  
  <pre><code>ifstream in(asmfile,ios::in);
  char c;
  string str[3];
  string subset;
  long locctr=0;
  int i=0;
  
  
  while((c=in.get())!=EOF)
  {
      in.putback(c);
      str[0]="";
      str[1]="";
      str[2]="";
      i=0;
  
      while((c=in.get())!='\n' &amp;&amp; c!=EOF)
      {
  
          in.putback(c);
          in&gt;&gt;str[i++];
  
      }
  }
  </code></pre>