/// <summary> /// Loading clippings from My Clippings.txt file on kindle. /// </summary> /// <param name="path">Path to "My Clippings.txt".</param> /// <returns></returns> public IEnumerable<ClippingItem> Convert(string path = "") { if (String.IsNullOrEmpty(path)) // if load executing with out parameter { path = "My Clippings.txt"; } IDataLoader txtLoader = new TxtDataLoader(); IEnumerable<ClippingItem> clippingsList = txtLoader.Load(path); using (StreamReader reader = new StreamReader(path)) { MD5Utility HashUtility = new MD5Utility(); bool isNewFile = HashUtility.IsNewFile(reader.BaseStream); // check md5 hash of last converted and current if (isNewFile) { Save(path, clippingsList); } } return clippingsList; }