2. Load nội dung text file đưa lên giao diện (Datagrid) private void btLoad_Click(object sender, EventArgs e) { StreamReader sr = File.OpenText("D:\\linh tinh\\project mau\\csdl_voi_text_file\\sv.txt"); String line = null; while ((line = sr.ReadLine()) != null) { //danh sach cac ki tu can cat chuoi char[] delimiterChars = {'\t', ' '}; //ket qua cat chuoi cua \t va khoang trang se duoc HO TEN MSSV String[] ho_ten_mssv = line.Split(delimiterChars); //add ket qua vao datagridview dataGridView1.Rows.Add(ho_ten_mssv);