title: How to make the StreamReader read from the start of the textfile
body: <p>I have created a streamReader, but the first 'ReadLine()' reads the 14th line in the file, not the first, and I don't know why this is.</p>
  
  <p>My code is:</p>
  
  <pre><code>StreamReader reader = new StreamReader("argus-BIG.txt");  
  
  //create array to hold data values
  string[] branchData = new string[11];
  
  //get 11 lines of branch data file and store in an array
  for (int i = 0; i &lt; 11; i++)
  {
      branchData[i] = reader.ReadLine();
  }            
  
  //new instance of Branch Class
  Branch tempBranch = new Branch();
  
  //set branch values from branchData array
  tempBranch.setBranchID(branchData[0]);
  tempBranch.setBranchNickname(branchData[1]);
  tempBranch.setBranchAddressNo(branchData[2]);
  tempBranch.setBranchAddressStreet(branchData[3]);
  tempBranch.setBranchAddressCity(branchData[4]);
  tempBranch.setBranchAddressCountry(branchData[5]);
  tempBranch.setBranchAddressPostCode(branchData[6]);            
  tempBranch.setNearestBranch1(branchData[7]);
  tempBranch.setNearestBranch2(branchData[8]);
  tempBranch.setNearestBranch3(branchData[9]);
  tempBranch.setNoCategories(Convert.ToInt32(branchData[10]));
  </code></pre>
  
  <hr>
  
  <p>I wrote a test app, which worked, then copied and pasted the code (which looked identical to me) back into my main program, and it worked. Thanks for your help</p>