1

 string fileName = @"C:UsersSDG08DesktopResultA.YMD(T8387).txt";
        private void LoadCSV()
        {

            string[] lines = File.ReadAllLines(fileName);

            foreach (string line in lines)
            {

                string[] col = line.Split(new char[] { ',' });
                for (int i = 0; i <= col.Length - 1; i++)
                {
                        lvResult.Columns.Add(col[i].ToString());

                }

            }

        }

private void LoadTextFile()
{
    string[] lines = File.ReadAllLines(filename);

    foreach (string line in lines)
    {
        string[] col = line.Split(new char[] { ',' });
        ListViewItem lvItem = new ListViewItem();
        for (int i = 0; i <= col.Length - 1; i++)
        {
            lvItem.Text = col[i].ToString();
            listView1.Items.Add(new ListViewItem(lvItem.Text));
        }

    }

}

|