المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : File Format



C# Programming
09-17-2009, 04:52 AM
Hi everyone,

I am kind of just after a bit of advice and opinon. I am making a podcatcher in C#(duh that's the board I am posting to http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif ). I don't have any problem with the coding yet(touch wood) however I am trying to decide how best to store the information on the subscribed to podcasts and their relevant episodes. Straight away I thought about saving it as an xml file, podcast RSS downloaded as an xml file, fairly easy convert of my object into XML and then back to saving it. But then I thought it could get a bit iffy when it comes to duplicates. I don't really want to have to traverse the entire XML doc to find duplicates, and ensure that they don't happen. So thinking ahead i created my podcast episode objects with a unique id. but then i don't really want to save my subscription list in a db either, that seems to me to be overkill. The only other thing is to just output the subs list into a text file, then read each object in and ensure that there are no duplicates from what ever storage container i put them in(ArrayList prob http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif) This seems a bit naff too though.

I don't know I think maybe I am just rubbish at making a decision http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif, but I would appreciate some other people's input into how they would store the data.

Thanks in advance

Cads