title: Check first character of each line for a specific value in PowerShell
body: <p>I am reading in a text file that contains a specific format of numbers. I want to figure out if the first character of the line is a 6 or a 4 and store the entire line in an array for use later. So if the line starts with a six add the entire line into sixArray and if the line starts with a 4 add the entire line into fourArray.</p>
  
  <p>How can I check the first character and then grab the remaining X characters on that line? Without replacing any of the data?</p>