Esempio n. 1
0
    private void PreProcess(string line)
    {
        List <string> splitLine = new List <string>(line.Split('\t'));

        if (splitLine.Count > 0)
        {
            // First element in the list will be the word, all others are the clues
            string word = splitLine[0].Trim();

            if (word.Length > 0)
            {
                PreProcessedStreamWriter.WriteLine(word + ";" + AddLetterMappings(word, 0, ""));
                CluesStreamWriter.WriteLine(line);
            }
        }
    }
Esempio n. 2
0
    protected override void SetStopped()
    {
        switch (Type)
        {
        case TypeOfWork.PreProcess:
            PreProcessedStreamWriter.Flush();
            PreProcessedStreamWriter.Close();
            CluesStreamWriter.Flush();
            CluesStreamWriter.Close();
            break;
        }

        wordFileLines = null;

        base.SetStopped();
    }