title: Parsing a tab delimited text file with VB.Net
body: <p>I'm trying to parse a text file.  First I plan on extrcating each line, then extracting each field by searching for a tasb.</p>
  
  <p>When I use InStr to sercah for a \r (return for end of line) or \t (for tab) I always get a zero.  But if I put in a visable letter such as a I got a 5.
  also I tried /r, /n and \n all return a zero.
  The file looks as follows:</p>
  
  <pre>
  ID  Name
  1   Patient
  2   Bed
  3   PatientSet
  4   BedSet
  5   TriggerSet
  6   Triggering
  7   Panel
  </pre>
  
  <p>the code</p>
  
  <pre><code> fileReader = My.Computer.FileSystem.ReadAllText("D:\BW\bwdatabase\ContextType.txt")
      MsgBox(fileReader)
  
      Str = fileReader
      i = InStr(Str, "\r") // i uis zero
      l = Mid(Str, 0, i - 1) // so this crashes becouse index is -1
      MsgBo
  </code></pre>