From 67617f1bcf9fb8173ccd4810551226c84ddaf70f Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Mon, 30 May 2022 13:25:07 +0200 Subject: [PATCH] analyse text from second part of lab --- Lab04/code/part01-analyze/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lab04/code/part01-analyze/main.go b/Lab04/code/part01-analyze/main.go index 6becc39..9e590d2 100644 --- a/Lab04/code/part01-analyze/main.go +++ b/Lab04/code/part01-analyze/main.go @@ -112,7 +112,8 @@ func plotResult() { func main() { initLetterStruct() - totalCount := countLetters(readFile("plaintext.txt")) + //totalCount := countLetters(readFile("plaintext.txt")) + totalCount := countLetters(readFile("../part01-encrypt/output.txt")) calculateFrequency(totalCount) plotResult() sort.Sort(letterList(letters))