public void ProcessCommand(Dictionary <string, string> CmdList, string filePath, string fileName)
        {
            List <string> fileDataList = new List <string>(ReadDataFile.Load_DataFile(filePath, fileName));

            string value = ReadDataFile.Read_RawSingleLine(cmdKeys.cmdName, fileDataList);

            int[]         brackest = ReadDataFile.FindUniqueBrackets(cmdKeys.cmdSynonymList_Start, cmdKeys.cmdSynonymList_End, fileDataList);
            List <string> keys     = ReadDataFile.Read_WordLists(brackest[0], brackest[1], fileDataList);

            AddSafe(CmdList, value, value);
            foreach (string synonym in keys)
            {
                #region Test Prints
                //Console.WriteLine(value + ", " + synonym);
                //AddSafe(CmdList, TextUtils.StemWord.Stem(synonym).Value, value);
                //string StemValue = TextUtils.StemWord.Stem("looking").Value;
                #endregion
                AddSafe(CmdList, synonym, value);
            }
            #region - DEBUG - Test print some variables

            /*foreach (string line in fileDataList)
             * {
             *  Console.WriteLine(line);
             * }
             * Console.WriteLine(value);
             * foreach (int brack in brackest)
             * {
             *  Console.WriteLine(brack);
             * }*/
            #endregion
        }
예제 #2
0
        //Between Brackets, Read RAW lines into a List<string>
        public static List <string> BetweenUniqueBrackets(string start, string end)
        {
            List <string> data = new List <string>();

            int[] brackets = ReadDataFile.FindUniqueBrackets(start, end, fileData);
            data = ReadDataFile.Read_Cinamatic(brackets[0], brackets[1], fileData);
            return(data);
        }