Results 1 to 2 of 2

Thread: reading from code instead of .conf file

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    144

    reading from code instead of .conf file

    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.

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    huh? What code? What are you talking about?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width