I'm going to start by explaining my goals;
I am trying to make a database sort program for a list of cards that are imported into a text file and converted using a ruby script. Each card has many unique properties such as: Name, Level, Life etc.
My problem starts when it comes to saving and loading the information, and that is where I would like some help.
I have made different versions of the program, all of which use XML for saving and loading card information between tags. The version which saves each card into a different XML file works great, but the version that saves all card information into a single file tends to crash a lot because of files being already open and "XmlDocument" does not have a closing method to close a file after use. I know that is how it was made to work and that the problem lies my faulty code, but I cannot fix it.
So, I wanted to know if anyone here knew how I could make a database where I could store objects or information for each card and save and load to populate the fields in the program whenever I needed it.
I am using Visual Studio 2010 to make the program.
Thank you for reading and have a nice day.