0

I need help i got a text file(txt) with values separated with comma like this

"0C060000","SKILL_CH_WATER_CURE_C_05","Force Cure - Condiion",1000,2100,63,359
"0D060000","SKILL_CH_WATER_CURE_C_06","Force Cure - Condiion",1000,2100,63,398
"0E060000","SKILL_CH_WATER_HEAL_A_02","Heal - Medical Hand",1000,3000,424,85

array list box list Box no where txtbox, txtbox, no where
i want to get each data and display in the list box ,text box according to it
i tried this

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace SkillEdito
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Open.ShowDialog();
            onSelect();
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MessageBox.Show("This Tool is Build by Anshul Kumar \n for Ibot users");
        }
        private void onSelect()
        {
            string file_name = @Open.SafeFileName.ToString();
            string file =@Open.FileName.ToString();
            StreamReader txt = new StreamReader(file);
            try
            {
                if (File.Exists(file) && file_name != "" && file_name == "parse_skills.txt")
                {                    
                    string line;
                    while ((line = txt.ReadLine()) != null)
                    {                
                        string new_line= Delimi
                        
                    }
                }
            }
            finally
            {
                txt.Close();
            }
        }
    
    }
}

tell me how to separate them.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by croker10
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.