Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- listView1->Items->Clear();
- FILE* fe;
- char* mos = "Datos.txt";
- char all[100];
- char *dato1, *dato2, *dato3, *dato4, *dato5;
- fe = fopen(mos, "r");
- rewind(fe);
- while (feof(fe) == 0)
- {
- fgets(all, 100, fe);
- dato1 = strtok(all, ";");
- dato2 = strtok(NULL, ";");
- dato3 = strtok(NULL, ";");
- dato4 = strtok(NULL, ";");
- dato5 = strtok(NULL, ";");
- String^ da1 = gcnew String(dato1);
- String^ da2 = gcnew String(dato2);
- String^ da3 = gcnew String(dato3);
- String^ da4 = gcnew String(dato4);
- String^ da5 = gcnew String(dato5);
- listView1->Items->Add(da1);
- listView1->Items->Add(da2);
- listView1->Items->Add(da3);
- listView1->Items->Add(da4);
- listView1->Items->Add(da5);
- }
- fclose(fe);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement