Exemple #1
0
        /// <summary>
        /// Get Uniform format of symbols
        /// </summary>
        /// <returns>List of Uniform format symbols</returns>
        public Dictionary <string, string> ListSymbolKeyAndValue()
        {
            string pathPairList = NaneMainDir.GetFileDir() + "PairList/";
            string pathKey      = pathPairList + "keyList.txt";
            string pathValue    = pathPairList + "valueList.txt";

            string[] listKey   = File.ReadAllLines(pathKey);
            string[] listValue = File.ReadAllLines(pathValue);

            Dictionary <string, string> list_SymbolKeyAndValue = new Dictionary <string, string> {
                { "", "" }
            };

            for (int i = 0; i < listKey.Length; i++)
            {
                if (!(listKey[i] == ""))
                {
                    try
                    {
                        list_SymbolKeyAndValue.Add(listKey[i], listValue[i]);
                    }
                    catch (Exception)
                    {
                    }
                }
            }

            return(list_SymbolKeyAndValue);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            DateTime localDate = DateTime.Now;

            Console.WriteLine("\ntime program start {0}  {1} ", localDate, localDate.ToLongDateString());
            string path   = NaneMainDir.GetFileDir();
            string input  = path + "input/";
            string output = path + "output/";;

            MakeCritrogrfiFile.GetFiles(input, output);
            Console.WriteLine("\nPress any key to close the program");
            Console.Read();
        }