public void SaveDataToFile(string rootFolder) { string cardFp = FilePaths.GetFullPath(rootFolder + FilePaths.CARDS_PATH); Console.WriteLine(cardFp); CardParser parser = new CardParser(cardFp); parser.CreateNewFile(cardFp, mCards); }
public void LoadCardData(string rootfolder) { string cardFp = FilePaths.GetFullPath(rootfolder + FilePaths.CARDS_PATH); CardParser parser = new CardParser(cardFp); if (null == mCards) { mCards = new List<Card>(); } parser.Parse(mCards); }