//Add's a new Entry add the end of the file
    public static void  write(DictEntrySingleWord dicEntry)
    {
        createPathIfNotExists();
        StreamWriter writer = new StreamWriter(path, true);

        if (dicEntry is DictEntrySingleWord)
        {
            DictEntrySingleWord entry = ((DictEntrySingleWord)dicEntry);
            writer.WriteLine(entry.getWord() + "," + entry.getRate());
        }
        writer.Close();
    }
    //Write's a complete new File
    public static void  write(DictEntry dicEntry)
    {
        createPathIfNotExists();
        StreamWriter writer = new StreamWriter(path, false);

        if (dicEntry is DictEntrySingleWord)
        {
            DictEntrySingleWord entry = ((DictEntrySingleWord)dicEntry);
            writer.WriteLine(entry.getWord() + "," + entry.getRate());
        }
        else
        {
            List <DictEntrySingleWord> list = ((DictEntryMultyWord)dicEntry).getAllSubWords();
            foreach (DictEntrySingleWord entry in list)
            {
                writer.WriteLine(entry.getWord() + "," + entry.getRate());
            }
        }
        writer.Close();
    }