I put the code on a pastebin thingy so this post would be easier to read.
Anyways, basically, I have this 250MB text file that has a string of letters. 50 letters per line, and LOTS and LOTS of lines. I tried doing this before, but I got a Memory Error because I tried to read the whole file at once and put it on one line. Not good.
So, I was told to use Generators. This is what I got. It "works," but it'll run through in a split second, and the file it writes to will have an empty dictionary in it.
Help? Thanks in advance.