i downloaded a simple irc client that reads the server from a config file.

nick=forcer
server=irc.exnodes.net


in the form load it has this code...

Open "irc.conf" For Input As #1
Do While Not EOF(1)
Line Input #1, sLine

If InStr(1, sLine, "nick") Then
Nick = Mid(sLine, InStr(1, sLine, "=") + 1)
End If

If InStr(1, sLine, "server") Then
Host = Mid(sLine, InStr(1, sLine, "=") + 1)
End If

Loop
Close #1


i'm almost sure thats the code it uses to grab the info from the file. but how can i replace this so it reads from the code, instead of the conf file.

basically i dont want to use a conf file.