Results 1 to 2 of 2
  1. #1
    Intermi55ion's Avatar
    Join Date
    Nov 2017
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    7

    Need some help from someone fluent in VB

    My main issue is:

    I have imported a text file with accounts

    How do I split LINE by LINE via the keyword :

    How do I import the SPLIT for example user[0] in TextBox1 and pass[0] in TextBox2 ?

  2. #2
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Post a sample of what your input looks like.

    If it's
    USER:PASS
    USER2:PASS2
    USER3:PASS3

    Then the following should work
    Code:
    Imports System
    Imports System****
    
    Class Test
    
        Public Shared Sub Main()
            Try
                Using sr As StreamReader = New StreamReader("TestFile.txt")
                    Dim line As String
                    While sr.EndOfStream = False
                        Dim tokens As String() = sr.ReadLine().Split(":")
                        Dim username As String = tokens(0)
                        Dim password As String = tokens(1)
                    End While
                End Using
            Catch e As Exception
                Console.WriteLine("The file could not be read:")
                Console.WriteLine(e.Message)
            End Try
        End Sub
    
    End Class
    I converted this with an online converter from C#, because Visual Basic has terrible syntax, so I can't verify if this is working.
    Ah we-a blaze the fyah, make it bun dem!

Similar Threads

  1. $$$ I need some help from someone who doesnt pity stupid people $$$
    By TheFlyingDutchman' in forum War Thunder Hacks & Cheats
    Replies: 5
    Last Post: 04-20-2013, 09:15 AM
  2. [Solved] I need some help from the Hackers...
    By RavenR1 in forum Minecraft Help
    Replies: 4
    Last Post: 03-06-2012, 09:31 PM
  3. Need some help from the community.
    By Jabuuty671 in forum Alliance of Valiant Arms (AVA) Discussions
    Replies: 2
    Last Post: 07-20-2011, 07:52 AM
  4. Need Some Help From Pro
    By raecher in forum CrossFire Discussions
    Replies: 1
    Last Post: 04-22-2011, 10:06 PM
  5. need some help from leet people
    By ugotpwnd169 in forum WarRock - International Hacks
    Replies: 12
    Last Post: 08-27-2007, 07:31 PM