Reading Certain lines from file on server...

Drags111

Member
Joined
Oct 21, 2007
Messages
20
Programming Experience
1-3
Ok heres the deal:

I am running Visual Studios 2005. I have a txt doc on my server that will look like this:

VB.NET:
Got IP: False
Username: SomeUser
Password: SomePassword

and i want to check each individual thing. First i would want to see if GotIP is true or false. Then I would want to compare username, then password. How would I go about doing this?

Also, if the Got Ip is false, then I want to run a php file that will write in an IP that is stored in a variable on the program. Is this possible?

Thanks!
 
Back
Top