Get parameters out of text file
<p>I have a C# asp.net page that has to get username/password info from a text file.</p>

<p>Could someone please tell me how.</p>

<p>The text file looks as follows: (it is actually a lot larger, I just got a few lines)</p>

<pre><code>DATASOURCEFILE=D:\folder\folder
var1= etc
var2= more
var3 = misc
var4 = stuff
USERID = user1
PASSWORD = pwd1
</code></pre>

<p>all I need is the UserID and password out of that file.</p>

<p>Thank you for your help,</p>

<p>Steve</p>
