Using python to merge two text files line for line
I'm a bit new to Python programming and hoped that someone might be able to help with a problem I'm having. What I essentially want to do is to combine two text files line for line. I know how to do this in a bash script so to give you a better idea here's the code for that:
and file2 said:
then running this command would create merged_file1_and_file2 which would be:
The code I'm using at the moment is:
What I'd like to do is something like: (pseudo code, I know it's not python ;-))
Just had an epiphany...
|All times are GMT -5. The time now is 05:40 PM.|