title: VB.net Streamreader use across different subs
body: <p>I am setting streamreader to populate a list and then when I encounter a formfeed, I process each page separately. My problem is when I go to another sub the streamreader info is lost. How to I make it link across different subs?</p>
  
  <p>Example is posted below:</p>
  
  <p>Public Sub cmdGet()</p>
  
  <p>Do Until sr_Read.EndOfStream</p>
  
  <pre><code>                ClearVariables()
                  line = sr_Read.ReadLine
                  Populate_List()
  
  
                  ParseRecord()
                  Print_Output_Record()
  
                  myList01.Clear()
                  myList01.Add("")
              Loop
  </code></pre>
  
  <p>end Sub</p>
  
  <p>Public Sub Populate_List()</p>
  
  <pre><code>line = SR_Read.ReadLine
  Do While (Mid(line, 1, 1) &lt;&gt; Chr(12))
      myList01.Add(line)
      line = SR_Read.ReadLine
  Loop
  </code></pre>
  
  <p>End Sub</p>
  
  <p>Thank you for any assistance you can provide me.</p>