Click here to Skip to main content
15,910,661 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

I'm a beginner with the language c++
I've succeeded in exporting the data of the listview in txt file. The difficulty that I’m facing is importing one line of a txt file into the listview.

Please Help!!!

Thnx :)
Posted
Comments
Sandeep Mewara 11-May-11 4:39am    
If you would have shared your effort with the error, others might find it easy to help you out.

It is not difficult, just use you preferred function for reading the text file line into a string, create a LVITEM instance, set properly its pszText and mask members, finally pass it to the ListView via ListView_InsertItem[^].
 
Share this answer
 
You should definitely improve your question...

What have you tried?
Which is the problem?
...

We can't help you in that way...

If you've been able to get the ListView information to a text file, then you should be able to make the process in the other way round, but we need more information...

Trying to help:
You should be able to open the file in order to read.
Search for the end of each line and select the line you want.
Put that information inside the ListView...

Should be easy...

But you must improve your question...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900