public void CreateJournal(CreateJournalSetting createSetting) { try { var journalData = JournalHelper.BuildJournalStart(createSetting.DebugModus); journalData += JournalHelper.BuildDocumentOpen(createSetting.CurrentFile.FilePath); journalData += JournalHelper.BuildAddinLaunch(createSetting.AddinId, createSetting.CmdFullName); journalData += JournalHelper.BuildAddinAddinCommandData(createSetting.JournalData); var journalFile = FileHelper.ChangeExtension(createSetting.CurrentFile.FilePath, "txt"); journalFile = Path.GetFileName(journalFile); journalFile = $"{createSetting.FileCount}_{journalFile}"; journalFile = Path.Combine(createSetting.DestinationDir, journalFile); FileHelper.WriteFile(journalFile, journalData); journalFiles.Add(journalFile); } catch (Exception ex) { throw ex; } }