I am currently working on a program that edits txt files but it's for a game. There is a file that contains information that the client uses. This is what the file looks like:

|piece of code here|another piece|and another piece|
|piece of code here|another piece|and another piece|
|piece of code here|another piece|and another piece|
|piece of code here|another piece|and another piece|
|piece of code here|another piece|and another piece|

I want to make a program that reads this file and reads each piece of code separately and places them in different places like this:

http://i133.photobucket.com/albums/q56/Tanimus/1251.png

Can I get some help with this?

I made the code and I thought it would work but it only does the first line of the txt file:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        
        Dim LineOfText As String
        Dim aryTextFile(10) As String

        LineOfText = My.Computer.FileSystem.ReadAllText(TextBox1.Text & "yvd.set")

        aryTextFile = LineOfText.Split("|")
        ListBox1.Items.AddRange(Split(aryTextFile(1), vbNewLine))
        TextBox2.Text = aryTextFile(2)
        TextBox3.Text = aryTextFile(3)
        TextBox4.Text = aryTextFile(4)
        TextBox5.Text = aryTextFile(5)
        TextBox6.Text = aryTextFile(6)
        TextBox7.Text = aryTextFile(7)
        TextBox8.Text = aryTextFile(8)
        TextBox9.Text = aryTextFile(9)
        TextBox10.Text = aryTextFile(10)
    End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.