analyse text from second part of lab

This commit is contained in:
Florian Hoss 2022-05-30 13:25:07 +02:00
parent ed84374a45
commit 67617f1bcf

View file

@ -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))