Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using .ini file from website

Status
Not open for further replies.

KempCGDR

Programmer
Jan 10, 2003
445
GB
Hi, I'm posting this for a mate because his account is having problems right now. I only gave it a quick read-through so if there's anything missing please let me know. And with no further ado, onto his question:

--------------------------------------

hi, i need some help in spliting up a string.

ive got a file on the net structured like so:

[user1]
password=*****
userlevel=3

[user2]
password=******
userlevel=1

i wanna read that into a string in VB and then read through it splitting it up into sections so that the program can know the name of the user, their password and their userlevel. i assume i would doing it by somehow seperating each line and then telling it the password is the letters after "password=" etc.

i hope ya know what i mean, its kinda vague, but i try to explain.

could anyone help me on splitting this up properly and it also needs to split it up properly wether there was 1 user or 500 users. and also take into account extra options e.g. birth=wotever.

thanks

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top