I have a 3GB file a.txt
of the form:
a 20
g 33
e 312
....
And a b.txt
file which is a map to the alphabet in a.txt
:
e elephant
a apple
g glue
....
I'd like to merge these two files to create c.txt
like:
apple 20
glue 33
elephant 312
...
I have tried to write a simple for loop to do that but failed. When I run the python file, it runs 2 seconds and stop.