I’m trying to make me a little program in C # (using Visual Studio 2010) to keep track of the films that I keep on my computer. The interface is just a ListView with 7 Columns and a Add button. Add button opens a opendialog and allows me to select the video file. Click on Open and then goes info about the file or files in the ListView table.
I’m wondering if anyone can tell me what would be the best method to store the listview table. So all info that i put into the listview over the time will always appear when i start the program. Maybe like what do I do to get a similar substation such as iTunes, when I add music file and exit the program then run the program later the file will be there not empty listview like i get at this state.
Should i use StreamWriter and textfile or is there a better way?
excuse me if this is complicated. My English not good enough.
I am not an experienced programmer.
For something as simple as what you’re doing, I serialize to an XML file, and then Deserialize from the same XML file every time the application opens.
If you list of movies gets too big, consider moving to some light-weight database.