analyse text from second part of lab
This commit is contained in:
parent
ed84374a45
commit
67617f1bcf
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Reference in a new issue