Opening a text file from the internet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ldpfrog
    New Member
    • Nov 2006
    • 16

    Opening a text file from the internet

    I was wondering how I would be able to open and take input from a text file through the internet. I was hoping that I could simply replace the filepath on my computer with the direct file online, but that was not the case. I'm using this to take usernames and passwords from the file. This is the working code I have now putting the data into an array.

    Thanks alot, Frog

    [CODE=vb]nFileNum = FreeFile

    Open "C:\Documen ts and Settings\Matt\M y Documents\testi ng.txt" For Input As nFileNum
    lLineCount = 1

    NumLine = 0
    LCount = 1
    UnPw = 0

    Do While Not EOF(nFileNum)
    Line Input #nFileNum, sText
    LCount = LCount + 1
    If LCount Mod 2 <> 0 Then UnPw = 2
    If LCount Mod 2 = 0 Then
    NumLine = NumLine + 1
    UnPw = 1
    End If
    UInfo(NumLine, UnPw) = sText
    Loop[/CODE]
Working...