Hello,
Im having trouble with file I/O.
My problem is this, i have a file of formated data like this:
Code:
KEY: 34
djflkj jsdklfj asjdflkj adslkfjljlajo eoiwj jlifjlk dlksajlkmlkbn lkjdlkjoi oqiwjeoi kjd
KEY: 34
KEY: 35
This is Plaintext... wow, its great for people to be able to read me ;)
KEY: 35
KEY: 36
kjldflk alkjsfoi oijf oidsjfoim lkjvl kjaofijowieajfl lkjsfe
KEY: 36
Of course the example above is made up, but the format is the same. Basicly what i am trying to do is take files from a wordlist, store them to a string... then scan all the keys(usally from 1-1000) for common words to narrow the search down. What I dont understand is how i can print what KEY number the word is found it because of the randomness of the output... Any suggestions?
PS. the program i am working on is simply a program to expirment brute forcing with the Beufort/Vinger ciphers, turning grilles, and other old crytograhic devices...