Guys I need to read from a text file and display to a listview I have tried google but nothing like what I am looking for, can anyone help me, Im using windows application

Thanx in advance

If you want to add items to a listview, you can do like this. Hope it helps.

(Read contents from file and get strings/text)

String^ TextFromFile;
listView1->Items->Add(TextFromFile);

Guys I need to read from a text file and display to a listview I have tried google but nothing like what I am looking for, can anyone help me, Im using windows application

Thanx in advance

I have tried that but all the text appears in one column instead of writting each record on its separate column and it reads the spaces too

I wonder if you might need to change the listViewProperty "View" to List.

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.