Exemplo n.º 1
0
        // Loads the file and puts it into the category list class
        public static void GetCategoryList()
        {
            if (File.Exists("data\\Category.txt"))
            {
                var catFile = File.ReadAllLines("data\\Category.txt");

                foreach (string cat in catFile)
                {
                    CategoryList.AddCat(cat);
                }
            }
        }